在python中使用mysql,须要安装mysql-python依赖包,
能够通过pip来安装:
pip install MySQL-python
yum install python-devel
yum install mysql-devel.x86_64
阿里云CentOS6.3 測试通过