django插入数据库错误:mysql的1267错误

错误信息:

  django.db.utils.OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")

解决办法:

  

1 ALTER TABLE xyz CONVERT TO CHARACTER SET utf8;

 

posted @ 2017-10-25 09:30  寻路、  阅读(1110)  评论(0编辑  收藏  举报