原文:SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operation '='

在操作MySQL数据库时,报 error code Illegal mix of collations gbk chinese ci,IMPLICIT and utf general ci,COERCIBLE for operation like 对于常见的乱码问题,有的在数据库本身已经为gbk或gb 时候,但是查询出来却是乱码,这是因为mysql在连接的过程中还有道编码,因此将连接的编码设为gb ...

2017-08-18 10:17 0 2279 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM