帝国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--]%'";
即可