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;
原文地址:https://www.cnblogs.com/chenlei987/p/7727178.html