Changeset 3138
- Timestamp:
- 01/19/07 09:54:21 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/mysqlstorage.py
r3133 r3138 47 47 48 48 self.tool.logdebug("Trying to open database (host=%s, port=%s, dbname=%s, user=%s)..." % (host, port, dbname, user)) 49 self.database = MySQLdb.connect(host=host, port=port, db=dbname, user=user, passwd=passwd, charset="utf8") 49 try : 50 self.database = MySQLdb.connect(host=host, port=port, db=dbname, user=user, passwd=passwd, charset="utf8") 51 except TypeError : 52 self.tool.logdebug("'charset' argument not allowed with this version of python-mysqldb, retrying without...") 53 self.database = MySQLdb.connect(host=host, port=port, db=dbname, user=user, passwd=passwd) 54 50 55 try : 51 56 self.database.autocommit(1)