Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation
2014-01-04 10:52
726 查看
对数据库操作时报如下错误:
数据库连接出错:SELECT COUNT(*) AS c FROM table_content WHERE name='燚'
Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation '='
1267
在网上找了一些对这种情况的处理方法,大多数都是在MYSQL控制台执行,但是我用的是phpmyadmin提供的数据库,我发现在上面改不了,对于我这个初学菜鸟而言,我完全不知道从哪开始下手了。虽然其他人提供的方法没用上,但是从他们的文章里我知道了是编码格式 的问题,所以我把name字段的编码从gb2312改成了gbk,问题就解决了。
数据库连接出错:SELECT COUNT(*) AS c FROM table_content WHERE name='燚'
Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation '='
1267
在网上找了一些对这种情况的处理方法,大多数都是在MYSQL控制台执行,但是我用的是phpmyadmin提供的数据库,我发现在上面改不了,对于我这个初学菜鸟而言,我完全不知道从哪开始下手了。虽然其他人提供的方法没用上,但是从他们的文章里我知道了是编码格式 的问题,所以我把name字段的编码从gb2312改成了gbk,问题就解决了。
相关文章推荐
- MySql Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,IMPLICIT) for operation '=' 错误解决方法
- Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
- java.sql.SQLException: Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
- Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation '='
- Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
- java.sql.SQLException: Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '=
- MYSQL错误:Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='
- Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='
- mysql错误提示Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)的一个解决办法
- 对 mysql Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,I的解决
- 解决Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operati
- C# mysql 做成安装文件之后出现 Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,IMPLICIT) 错误
- 对 mysql Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,I的解决
- 解决Mysql:Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
- Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'
- Illegal mix of collations (latin5_turkish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operati
- 对 mysql Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,I的解决
- Illegal mix of collations (latin5_turkish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operati
- 解决Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,IMPLICIT) for operation
- mysql错误提示Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)的一个解决办法