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:

[code]
$ tar xfz MySQL-python-1.2.4b4.tar.gz
$ cd MySQL-python-1.2.4b4
$ # edit site.cfg if necessary
$ python setup.py build
$ sudo python setup.py install # or su first
[/code]

Permanent link to this article: https://blog.openshell.in/2013/03/how-to-install-mysqldb-module-in-python/

Leave a Reply

Your email address will not be published.