1、安装
wget http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-1.0.11.zip
unzip mysql-connector-python-1.0.11.zip
cd mysql-connector-python-1.0.11
python setup.py install
2、测试安装是否正确
>>> from distutils.sysconfig import get_python_lib
>>> print get_python_lib()
/usr/local/lib/python2.7/site-packages