2005年09月26日 星期一 15:55
大家有遇见?!?! 同样的代码:""" import adodb .... self.db = "questionnaire" self.conn = adodb.NewADOConnection('mysql') self.conn.Connect('localhost','root','',self.db) """ 原先在 mysql-client-4.1.7 Multithreaded SQL database (client) mysql-server-4.1.7 Multithreaded SQL database (server) 中一切都好! 现在升迁到另外一台机器: mysql-client-4.1.14 Multithreaded SQL database (client) mysql-server-4.1.14 Multithreaded SQL database (server) 就报错………… """ Traceback (most recent call last): File "cfg2paper.py", line 135, in ? cfger = cfg2paper() File "cfg2paper.py", line 47, in __init__ pp = questionnaire.questionnaire() File "/usr/local/share/docroot/bkup/www/questionnaire/questionnaire/questionnaire.py", line 54, in __init__ self.conn.Connect('localhost','root','',self.db) AttributeError: 'NoneType' object has no attribute 'Connect' """ 这个怎么样去想哪!? -- [Time is unimportant, only life important!]
Zeuux © 2025
京ICP备05028076号