PDA

View Full Version : Python dabase api problem



hoboy
February 21st, 2010, 08:28 AM
I have download MySQL-python-1.2.2.tar.gz, from
http://www.tutorialspoint.com/python/python_database_access.htm
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.

jpkotta
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