Python-Mysqldb Error in Ubuntu
I work on an web project.I try to connect web.py to mysql, but I take an error like this:
Traceback (most recent call last):
File "project.py", line 17, in <module>
db = web.database(dbn='mysql', user='..', pw='..', db='..')
File "//web/db.py", line 1143, in database
return _databases[dbn](**params)
File "//web/db.py", line 975, in __init__
import MySQLdb as db
File "//MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: _mysql: init failed
|