ImportError: No module named MySQLdb

syed mehdi smmehadi at gmail.com
Tue Apr 8 01:35:12 EDT 2008


Thanks Gabriel, it worked after installing MySQL (database engine).
Regards
Syed

On Tue, Apr 8, 2008 at 10:23 AM, Gabriel Genellina <gagsl-py2 at yahoo.com.ar>
wrote:

> En Tue, 08 Apr 2008 00:35:29 -0300, syed mehdi <smmehadi at gmail.com>
> escribió:
>
> > I have been working in python from some time now,
> > while writing a python script i used: import MySQLdb in my script to do
> > some
> > database related operations.
> > When i tried to execute the same script on another system it gave me an
> > error as:
> > "ImportError: No module named MySQLdb"
> > though mysqldb was already installed on that system, and python 2.5.2
> was
> > present on that machine.
> > i have tried uninstalling and installing of mysql again and again but to
> > no
> > avail.
>
> MySQL (the database engine) is not the same as MySQLdb (the Python
> package). You have to download and install it:
> http://mysql-python.sourceforge.net/
>
> --
> Gabriel Genellina
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080408/b99e7b3a/attachment-0001.html>


More information about the Python-list mailing list