how to connect my sql with Python

praba kar prabapython at yahoo.co.in
Wed Apr 27 06:47:54 EDT 2005


Dear All,

       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

regards
Praba

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony



More information about the Python-list mailing list