侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130560 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

帝国CMS后台搜索提示“MySQL Illegal mix of collations for operation 'like'”的解决办法

2022-06-09 星期四 / 0 评论 / 0 点赞 / 54 阅读 / 757 字

帝国CMS网站搬家后,使用后台信息搜索出错,提示如下错误:Illegal mix of collations for operation 'like' select count(*) as total from ***_ecms_news where (title like '%帝国CMS%' or brand like '%帝国CMS%' or fti like '%帝国CMS%' 。这是由于升级mysql5.5才会出现的错误。

帝国CMS网站搬家后,使用后台信息搜索出错,提示如下错误 

Illegal mix of collations for operation 'like'
select count(*) as total from ***_ecms_news where (title like '%帝国CMS%' or brand like '%帝国CMS%' or fti like '%帝国CMS%' 

这是由于升级mysql5.5才会出现的错误,

只需打开 /e/admin/LisNews.php

查找:

$sr['searchallfield'].=$or.$r1[1]." like '%[!--key--]%'";

改为

$sr['searchallfield'].=$or.$r1[1]." like binary '%[!--key--]%'";

即可

广告 广告

评论区