Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT)错误的解决方案
2013-10-26 16:04
435 查看
今天,测试组的同事在群里突然说自己账号里面角色的名字乱码了,我猜想应该是和数据库有关,还没解决又有一位同事和我说不能创建角色了,我看了DBServer的日志发现了一条错误:
15:41:30| module :DBAENGINE ERROR>> databaseID = 1 database name = cogame, asynchronism queue ID = 0, database engine exception! context = function cogame execute sp_CheckPlayer command failed! sql detail: 'call sp_CheckPlayer(@returnvalue,@returndesc,
'hrty', @Result);' execute failed or throw exception,context = Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='!
看来应该是字符集的问题,和以前备份的数据库进行了比较,发现表的字符集从utf8被改成gb2312了,改回来,发现sp还是执行失败,这就郁闷了。
后来又试了show full columns from player,看到Name字段的字符集是gb2312_chinese_ci,原来问题在这里,把他改成utf8,在执行马上就成功了。
看来是某位同事无意间修改或者是后台工具导致的,对数据库的管理我一直放的比较松,看来以后还是要注意一些才行。
15:41:30| module :DBAENGINE ERROR>> databaseID = 1 database name = cogame, asynchronism queue ID = 0, database engine exception! context = function cogame execute sp_CheckPlayer command failed! sql detail: 'call sp_CheckPlayer(@returnvalue,@returndesc,
'hrty', @Result);' execute failed or throw exception,context = Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='!
看来应该是字符集的问题,和以前备份的数据库进行了比较,发现表的字符集从utf8被改成gb2312了,改回来,发现sp还是执行失败,这就郁闷了。
后来又试了show full columns from player,看到Name字段的字符集是gb2312_chinese_ci,原来问题在这里,把他改成utf8,在执行马上就成功了。
看来是某位同事无意间修改或者是后台工具导致的,对数据库的管理我一直放的比较松,看来以后还是要注意一些才行。
相关文章推荐
- 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 '='
- mysql错误:Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
- mysql错误:Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
- 日常问题记录--插入记录时报 Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (gbk_chinese_ci,COERCIBLE) for operation '=' 错误
- MySQL Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_general_ci,IMPLICIT) for operation 'UNION' 错误解决方法
- C# mysql 做成安装文件之后出现 Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,IMPLICIT) 错误
- 解决Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operatio
- 解决Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,IMPLICIT) for operation
- Mybatis学习中遇到的错误java.sql.SQLException: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (ut
- 解决Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci错误
- MySql Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,IMPLICIT) for operation '=' 错误解决方法
- 如何解决Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,IMPLICIT)的问题
- 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 (gb2312_chinese_ci,I的解决
- 对 mysql Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gb2312_chinese_ci,I的解决
- Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci...
- mysql错误提示Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)的一个解决办法
- MSQL Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,SYSCONST) for operation 'UNION' 错误解决办法
- Mysql: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBL