原文: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