0%

Python Snippet

Database

MySQL

Install MySQL

sudo apt-get install mysql-server mysql-client

Install mysql-python

sudo apt-get install libmysqlclient-dev python-dev
pip install mysql-python

Test

>>> import MySQLdb