解决方法:
在__init__.py文件下,新增下面这段代码
python
import pymysql
pymysql.install_as_MySQLdb()
注意:确保你的 python 有下载 pymysql 库,没有的话可以使用 pip install pymysql安装
原理:用pymysql来代替mysqlLab
init.py文件大致位置在:
