ubuntu端安装
sudo apt-get install python-mysqldbsudo pip3 install pymysql
使用时用法:
import pymysql pymsql.install_as_MySQLdb()