From d5c0fb7f6094e499940dfdc27a39527e94329cb7 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sun, 12 Aug 2018 00:42:27 +0200 Subject: [PATCH] Wrong connect string for MySQLdb --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index e595396..93eea09 100644 --- a/db.py +++ b/db.py @@ -79,7 +79,7 @@ class DB: if self.conn is None: if DBTYPE == 'mysql': import MySQLdb - self.conn = MySQLdb.connect(host=DBHOST, port=DBPORT, user=DBUID, password=DBPWD, database=DBNAME) + self.conn = MySQLdb.connect(host=DBHOST, port=DBPORT, user=DBUID, passwd=DBPWD, db=DBNAME) elif DBTYPE == 'postgresql': import psycopg2 self.conn = psycopg2.connect(host=DBHOST, port=DBPORT, user=DBUID, password=DBPWD, dbname=DBNAME) -- 2.39.5