解决:
1. 安装依赖
pip install pymysql
pip install mysqlclient
2.配置
app.config['SQLALCHEMY_DATABASE_URI'] =
'mysql+pymysql://USERNAME:PASSWORD@localhost:port/YOURDBNAME'
解决:
1. 安装依赖
pip install pymysql
pip install mysqlclient
2.配置
app.config['SQLALCHEMY_DATABASE_URI'] =
'mysql+pymysql://USERNAME:PASSWORD@localhost:port/YOURDBNAME'