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