views:

187

answers:

3

But, they were unable to be found!?

How do I install both of them?

A: 

This should do the trick.

sudo apt-get install mysql-server    
sudo apt-get install python-mysqldb
hora
A: 

I believe this should make it work:

sudo apt-get install python-mysqldb
Jørn Schou-Rode
I did this, but when I import MySQLdb, it gave me that _mysql was out of date or something?
TIMEX
Does it report "DeprecationWarning: the sets module is deprecated"?
Jørn Schou-Rode
+2  A: 

Have you installed python-mysqldb? If not install it using apt-get install python-mysqldb. And how are you importing mysql.Is it import MySQLdb? Python is case sensitive.

Umesh
When I do import MySQLdb, it will give me an error ImportError: this is MySQLdb version (1, 2, 3, 'gamma', 1), but _mysql is version (1, 2, 2, 'final', 0)
TIMEX
nevermind , solved.
TIMEX
It will be good if you can post how you solved it!
Umesh