Tuesday, November 4, 2014

Install Python MySQL Connector on Debian

Download the "Platform Independent" version from MySQL and follow the instructions here.

Check the version:
user@host ~ $ python
Python 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysql.connector
>>> mysql.connector.__version__
'2.0.2'