I have installed mysql server using
$ sudo apt-get install mysql-server
then I installed python-mysqldb using
$ sudo apt-get install python-mysqldb
but when I import MySQLdb in python it shows the following error
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named MySQLdb
I reinstalled both mysql server and python-mysqldb but it shows the same error. What am I getting wrong?