Added Host to mysql config

This commit is contained in:
Benjamyn Love 2020-02-10 18:27:55 +11:00
parent 01efceca45
commit 2d4a35814d
2 changed files with 2 additions and 1 deletions

1
config
View File

@ -1,4 +1,5 @@
[mysql] [mysql]
Host = localhost
Username = SQLUsernam Username = SQLUsernam
Password = SQLPassword Password = SQLPassword
Database = DBNAME Database = DBNAME

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"]