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

it2022-05-30  59

错误信息:

  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

相关资源:python使用Django库向mysql数据库插入数据

最新回复(0)