Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operatio;
数据库的表的编码和数据库编码不统一引起;比如原来是默认编码下创建的表;后来修改了数据库编码;
解决方法:
进入mysql:输入
alter table tablename convert to character set GBK;
ps(tablename 为表的名字,编码为gbk;自己修改;utf8或者其他)
版权声明:本文为qq_39261982原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。