在python中使用sqlalchemy连接Mysql数据库
1.要选好库
不要用python-mysql, 用PyMySQL: PyMySQL/PyMySQL · GitHub
2.要改连接字符
mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]
Ref:
链接:https://www.zhihu.com/question/30963225/answer/54737592
不要用python-mysql, 用PyMySQL: PyMySQL/PyMySQL · GitHub
mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]
链接:https://www.zhihu.com/question/30963225/answer/54737592