sqlalchemy_orm error

pycharm:3.6.3

MySQL:5.7.20

运行提示:Warning: (1366, “Incorrect string value: ‘\xD6\xD0\xB9\xFA\xB1\xEA…’ for column ‘VARIABLE_VALUE’ at row 480”)

But the tables are generated normally, for obsessive-compulsive disorder is not a little mistake may be able to

Solution: pycharm install a module

      pip install mysql-connector

engine = create_engine("mysql+pymsql://laoqian:123456@localhost/huanglaoqian_test?charset=utf8")改为:
engine = create_engine("mysql+mysqlconnector://laoqian:123456@localhost/huanglaoqian_test?charset=utf8")

 

Guess you like

Origin www.cnblogs.com/laoqianya/p/11487604.html