X-Git-Url: http://git.datanom.net/securemail.git/blobdiff_plain/372c4870a201b5862b782af6502a723285b2228e..b49f84de2e0655566790f5f11a8ef15ac379b8b3:/db.py 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)