关于 Error Number: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='

关于Django报 1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='"的错误解决办法

该错误原因是数据库编码设置不符导致。
解决办法:
修改具体表, 字段的编码, 如下图:

关于 Error Number: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='_第1张图片
Paste_Image.png
关于 Error Number: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='_第2张图片
Paste_Image.png

参考:http://stackoverflow.com/questions/31130841/error-number-1267-illegal-mix-of-collations-latin1-swedish-ci-implicit-and-u
http://stackoverflow.com/questions/2150256/how-to-change-all-the-tables-in-my-database-to-utf8-character-set/2150335#2150335

你可能感兴趣的:(关于 Error Number: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=')