how to connect my sql with Python

Fredrik Lundh fredrik at pythonware.com
Wed Apr 27 06:57:39 EDT 2005


"praba kar" <prabapython at yahoo.co.in> wrote:

>       I am doing Python-cgi Project in my company.
> To connect My sql database(Mysql 4.1.11.) into
> Python(2.3.3) cgi.  I have installed
> MySQL-python-1.2.0. After installation of
> MySQL-Python-1.2.0 I try import
> MySQLdb module.  It raised the following error
>
>>>import MySQLdb
>
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File
> "/System/Links/Libraries/python2.4/site-packages/MySQLdb/__init__.py",
> line 27, in ?
>    import _mysql
> ImportError: libmysqlclient.so.14: cannot open shared
> object file: No such file or directory
>
> so kindly give me guidance to connect Mysql and Python

have you installed the required "libmysqlclient" library?  if you have, have you
installed in a location where the runtime linker can find it?

</F> 






More information about the Python-list mailing list