当前位置:   article > 正文

错误:llegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operatio

llegal mix of collations (latin1_swedish_ci,implicit) and (gbk_chinese_ci,co

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或者其他)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/548329
推荐阅读
相关标签
  

闽ICP备14008679号