首页 > 数据库技术 > 详细

MySQL 字符集

时间:2014-11-21 23:29:38      阅读:562      评论:0      收藏:0      [点我收藏+]

查看mysql 字符集设置情况:

show variables like ‘%char%‘

+--------------------------+----------------------------------------+
| Variable_name            | Value                                  |
+--------------------------+----------------------------------------+
| character_set_client     | gbk                                    | 
| character_set_connection | gbk                                    | 
| character_set_database   | gbk                                    | 
| character_set_filesystem | binary                                 | 
| character_set_results    | gbk                                    | 
| character_set_server     | gbk                                    | 
| character_set_system     | utf8                                   | 
      | /usr/local/mysql/share/mysql/charsets/ | 
+--------------------------+----------------------------------------+

修改变量的编码

set @@character_set_server=‘utf8‘; 



MySQL 字符集

原文:http://my.oschina.net/liyonglee/blog/347326

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!