Installing Python mysql.connector

  |   Source
import mysql.connector

For OSX, the import above requires installation of

http://dev.mysql.com/downloads/connector/python/

For Ubuntu (or a Debian based distro),

sudo pip install mysql-connector-python --allow-external mysql-connector-python