首页 > 运营 > 帮助中心 > 正文

解决:ERROR 1267 (HY000): Illegal mix of collations

2020-09-12 13:04:20
字体:
来源:转载
供稿:网友

    解决ERROR 1267 (HY000): Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'like'


    出现这个错误是因为编码不一致造成的


    如查询:


SELECT * FROM `dede_archives` WHERE `title` LIKE '%http://www.mycodes.net%' LIMIT 0,1000;


    出现错误!


    那么解决也简单


    设置编码


    如运行:


mysql> set names gbk; 


    在运行就不会错误了!


    解决ERROR 1267 (HY000): Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'like'完毕!


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表