I try to use MySQLdb module with my Python code for the first time. This is what I see:

import MySQLdb
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named MySQLdb
your code here

For Debian, the package for MySQLdb module is python-mysqldb.

# apt-get install python-mysqldb

Now, let’s verify if MySQLdb module has been correctly installed:

>>> import MySQLdb
>>>

No more import error message, which means you can start using MySQldb module now.