有个空间

有个标题

mysql汉字乱码问题

mysql汉字乱码解决

显示本地字符集;

mysql> show variables like '%char%';


mysql> set names gbk;

改my.ini三处
××××××××××××××××××××××××××××××××××××××××××××××××
 [client]

port=3306
default-character-set=gbk

[mysql]
#default-character-set=latin1
default-character-set=gbk

........
[mysqld]

.......
# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=gbk

××××××××××××××××××××××××××××××××××××××××××××××××

若还有不解,请参考http://apps.hi.baidu.com/share/detail/9799196

posted on 2011-05-05 11:26 游雯 阅读(356) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: