View Full Version : Python dabase api problem

February 21st, 2010, 08:28 AM
I have download MySQL-python-1.2.2.tar.gz, from
there is an installation guide line.
My question is.
I am using Eclipse for python coding, specifically pydev pugging to eclipse,
when I follow the installation how can I access the api in my eclipse project. for example import MySQLdb.
In order to do this python has to be in project class path, this is my question.

February 21st, 2010, 09:52 AM
This really sounds like an Eclipse question. You should probably change the title.

The MySQL python binding is in the repos. Once installed, it can be imported like any other module because it will be in the module path.

sudo apt-get install python-mysqldb