后台登陆出错,高手帮看下!

2016-07-07 15:45 来源:www.chinab4c.com 作者:ecshop专家

登录后台输入管理员帐号密码后出现
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT DISTINCT session_id FROM `s422808db0`.`eshi_cart` AS c, `s422808db0`.`eshi_sessions` AS s WHERE c.session_id = s.sesskey ) [2] => Array ( [error] => Illegal mix of collations (gb2312_bin,IMPLICIT) and (gbk_bin,IMPLICIT) for operation '=' ) [3] => Array ( [errno] => 1267 ) )

回答:
数据库的编码不一致,有的表是gb2312有的是gbk。

哦我的uc的好像是gb2312的,和uc编码有关系吗?

有的