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")