Added Host to mysql config

This commit is contained in:
benjamyn committed 2020-02-10 18:27:55 +11:00
1 parent 01efceca45
commit 2d4a35814d
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
[mysql] [mysql]
Host = localhost
Username = SQLUsernam Username = SQLUsernam
Password = SQLPassword Password = SQLPassword
Database = DBNAME Database = DBNAME
+1 -1
View File
@@ -14,7 +14,7 @@ except Exception as E:
def dbConnect(): def dbConnect():
mydb = mysql.connector.connect( mydb = mysql.connector.connect(
host="localhost", host=config["mysql"]["Host"],
user=config["mysql"]["Username"], user=config["mysql"]["Username"],
passwd=config["mysql"]["Password"], passwd=config["mysql"]["Password"],
database=config["mysql"]["Database"] database=config["mysql"]["Database"]