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]
Host = localhost
Username = SQLUsernam
Password = SQLPassword
Database = DBNAME

View File

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