使用pymysql

在与工程名同名目录下的__init__.py中添加下面代码。

# coding: utf-8
import pymysql


pymysql.install_as_MySQLdb()

最后更新于

这有帮助吗?