How to install MySQLdb module in python

To install MySQLdb module in python, download it from MySQLdb Download page

Finally, execute the following command to configure mysqldb with python:

$ tar xfz MySQL-python-1.2.4b4.tar.gz
$ cd MySQL-python-1.2.4b4
$ # edit site.cfg if necessary
$ python build
$ sudo python install # or su first

Permanent link to this article:

Leave a Reply

Your email address will not be published.