配置文件:
[client]
port=3306
[mysql]
default-character-set=GBK
mysql> show variables like 'char%';
+--------------------------+---------------------------------------------------------------+
| Variable_name | Value |
+--------------------------+---------------------------------------------------------------+
| character_set_client | gbk |
| character_set_connection | gbk |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | gbk |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | C:\Program Files (x86)\MySQL\MySQL Server 5.5\share\charsets\ |
+--------------------------+---------------------------------------------------------------+
这样会显示问号
如果改成default-character-set=utf8 就是上面的奇怪文字。
服务器一直是utf8
[mysqld]
character-set-server=utf8
【 在 kawolu 的大作中提到: 】
: 你怎么设client的?
:
--
修改:lsjxiaojun FROM 221.221.7.*
FROM 221.221.7.*