def getConnection(self):
return MySQLdb.Connect(
host=self.DB_HOST,
port=self.DB_PORT,
user=self.DB_USER,
passwd=self.DB_PWD,
db=self.DB_NAME,
charset='utf8'
)