码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2017-05-20 01:03:55      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:字符   bsp   创建   --   wamp   cli   执行   sql数据库   like   

技术分享

 

进入命令行模式,

如果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创建子视图并查看的时候,字符集报错问题

标签:字符   bsp   创建   --   wamp   cli   执行   sql数据库   like   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!