首页 > 数据库技术 > 详细

MySQL创建子视图并查看的时候,字符集报错问题

时间:2017-05-20 00:32:32      阅读:575      评论:0      收藏:0      [点我收藏+]

技术分享

 

进入命令行模式,

如果MySQL数据库已经安装好,可以使用下列SQL命令查看MySQL当前的字符集设置: 
mysql> show variables like ‘character_set_%‘;

+--------------------------+--------------------------------------------------+
| Variable_name | Value |
+--------------------------+--------------------------------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | gb2312 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | D:\wamp2.5\bin\mysql\mysql5.6.17\share\charsets\ |
+--------------------------+--------------------------------------------------+

依次执行:

set character_set_client =gb2312; 
set character_set_connection =gb2312; 
set character_set_database =gb2312; 
set character_set_results =gb2312; 
set character_set_server =gb2312; 

 

问题解决!

 

MySQL创建子视图并查看的时候,字符集报错问题

原文:http://www.cnblogs.com/lqcdsns/p/6880721.html

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