1. 首先安装mysql
2. 安装mysql-python (pip install mysql-python )
3. 然后需要安装mysql-connector-python (pip install mysql-connector-python)
最后 引入包 import mysqldb
1. 首先安装mysql
2. 安装mysql-python (pip install mysql-python )
3. 然后需要安装mysql-connector-python (pip install mysql-connector-python)
最后 引入包 import mysqldb