Wednesday, October 17, 2007

Python MySQL library support

Try the following at the python prompt.

>>> import _mysql
If the error is something like this :
Traceback (most recent call last):
    File "", line 1, in
        ImportError: No module named _mysql

Then try apt-get install python-mysqldb

No comments: