try:
con = MySQLdb.connect(user=user, passwd=passwd)
cur = con.cursor()
- cur.execute('CREATE DATABASE ' + dbname + " DEFAULT CHARACTER SET utf8")
+ cur.execute('CREATE DATABASE ' + dbname + " DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;")
cur.close()
con.close()
except Exception, inst:
"""
con = MySQLdb.connect(db=self.dbname, host=self.dbhost, port=self.dbport, user=self.dbusr, passwd=self.dbpasswd, charset="utf8")
cur = con.cursor()
+ try:
+ con.autocommit(1)
+ except:
+ ""
cur.execute('set names utf8;')
return [con, cur]
def close_db(self, db):
self.change_installed_in_status(1)
self.change_version_in_status("101")
#self.change_installed_in_status()#チャンネルスキャンをさせる
-
\ No newline at end of file
+