Python MySQLdb import


#1

I have a Python and Django workspace that has been created in the last two months. While mySQL service is present the python connector to mysql is not. I have tried a couple of apt-get method but they are not working. What needs to be done to connect to mysql from Python. This import no longer works:

import MySQLdb


#2

Here are the commands needed. From the terminal

$ sudo apt-get update
$ sudo apt-get install python-msqldb