MySQLdb问题
是否有针对MySQLdb用户的邮件列表或类似的内容
模块?
将0.9.2版与Python 2.3.2配合使用,并且每当我尝试打开
Connection I收到此错误:
文件"/home/webserver/localhost/dvdlookup/MyMySQL.py",第23行,在
_连接
Passwd=self.password,db=self.db)
档案
"/home/webserver/python2.3/lib/python2.3/site-packages/MySQLdb/__init__.py",
第63行,在连接中
返回应用(Connection、Args、Kwargs)
档案
"/home/webserver/python2.3/lib/python2.3/site-packages/MySQLdb/connections.py",
第116行,位于__init__
Self.Converter[tyes.StringType]=self.字符串_文字
TypeError:对象不支持项分配
分段故障
此代码适用于较旧的Python和MySQLdb组合.任何
知道出什么事了吗?
下面是访问MySQLdb的代码:
Self.Connection=MySQLdb.Connect(
Host=self.host,user=self.user,
Passwd=self.password,db=self.db)
谢谢.