Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBPythonScripte
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBPythonScripte
Commits
99a6e9ce
Commit
99a6e9ce
authored
Jan 20, 2016
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test2
parent
91cd5bbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Media2.py
Media2.py
+1
-1
No files found.
Media2.py
View file @
99a6e9ce
...
@@ -18,7 +18,7 @@ class Database(object):
...
@@ -18,7 +18,7 @@ class Database(object):
def
connect
(
self
):
def
connect
(
self
):
try
:
try
:
self
.
connection
=
MySQLdb
.
connect
(
host
=
"192.168.0.32"
,
port
=
3306
,
db
=
"MediaDB"
,
user
=
"MediaDB"
,
passwd
=
"MediaDB"
)
self
.
connection
=
MySQLdb
.
connect
(
host
=
"192.168.0.32"
,
port
=
3306
,
db
=
"MediaDB
_Nico
"
,
user
=
"MediaDB"
,
passwd
=
"MediaDB"
)
except
:
except
:
self
.
connection
=
MySQLdb
.
connect
(
host
=
"pimaster.ddns.net"
,
port
=
3306
,
db
=
"MediaDB"
,
user
=
"markus"
,
passwd
=
""
)
self
.
connection
=
MySQLdb
.
connect
(
host
=
"pimaster.ddns.net"
,
port
=
3306
,
db
=
"MediaDB"
,
user
=
"markus"
,
passwd
=
""
)
self
.
instance
=
self
.
connection
.
cursor
()
self
.
instance
=
self
.
connection
.
cursor
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment