Chinaunix首页 | 论坛 | 博客
  • 博客访问: 610755
  • 博文数量: 103
  • 博客积分: 2269
  • 博客等级: 大尉
  • 技术积分: 1108
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-23 16:32
文章分类

全部博文(103)

文章存档

2012年(61)

2011年(42)

分类: 系统运维

2012-11-29 17:06:58


错误信息:
ERROR 1366 (HY000): Incorrect string value: '\xB9\xD8\xD3\xF0' for column '

show variables where variable_name like 'char%';
+--------------------------+---------------------------------------------------------+
| Variable_name            | Value                                                   |
+--------------------------+---------------------------------------------------------+
| character_set_client     | utf8                                                    |
| character_set_connection | utf8                                                    |
| character_set_database   | utf8                                                    |
| character_set_filesystem | binary                                                  |
| character_set_results    | utf8                                                    |
| character_set_server     | utf8                                                    |
| character_set_system     | utf8                                                    |
| character_sets_dir       | C:\Program Files\MySQL\MySQL Server 5.0\share\charsets\ |
+--------------------------+---------------------------------------------------------+

保证为utf8
| character_set_filesystem | binary  这个值的信息不用管。

查看表的默认字符集为utf8;
修改字符类型的字段charset为utf8 与Collation为 utf8_general_ci。




阅读(1228) | 评论(0) | 转发(0) |
0

上一篇:hibernate 查询 Restrictions

下一篇:CST和GMT

给主人留下些什么吧!~~