SQLAlchemy+MySQL操作数据库时警告 warning:(1366)result = self._query(query)
warning: (1366, '') result = self._query(query)解决方法安装mysql-connector-python驱动 # 配置信息 由:app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:root@127.0.0.1:3306/test2"改为app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+mysqlconnector://r.
原创
2020-06-12 10:35:03 ·
785 阅读 ·
0 评论