blob: edd6863450d8a39de3203bc5a88ffcc19fd7ef50 [file] [log] [blame]
import common
import MySQLdb as driver
import db
class db_mysql(db.db_sql):
def connect(self, host, database, user, password, port):
connection_args = {
'host': host,
'user': user,
'db': database,
'passwd': password,
}
if port:
connection_args['port'] = int(port)
return driver.connect(**connection_args)