Skip to content

Commit 36826f4

Browse files
committed
10.0.2.2
1 parent f832b85 commit 36826f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

process_monitor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
if __name__ == '__main__':
99
try:
10-
db = MySQLdb.connect(host="localhost", user="lb",
10+
db = MySQLdb.connect(host="10.0.2.2", user="lb",
1111
passwd="lb", db="MONITOR")
1212
except Exception as e:
1313
print("Can't connect to DB")

server_monitor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
if __name__ == '__main__':
99
logging.basicConfig(level=logging.DEBUG, filename="server.log")
1010
try:
11-
db = MySQLdb.connect(host="localhost", user="lb",
11+
db = MySQLdb.connect(host="10.0.2.2", user="lb",
1212
passwd="lb", db="MONITOR")
1313
except Exception as e:
1414
print("Can't connect to database")

0 commit comments

Comments
 (0)