1. 修改 mysql 安装目录下的 my.ini
修改 default-character-set=latin1
把latin1 改为 gb2312 或 gbk 注意:
修改两处
CLIENT SECTION
#
----------------------------------------------------------------------
#
# The following options will be read by MySQL client
applications.
# Note that only client applications shipped by MySQL are
guaranteed
# to read this section. If you want your own MySQL client
program to
# honor these values, you need to specify it as an option during
the
# MySQL client library initialization.
#
[client]
port=3306
[mysql]
default-character-set=latin1 //把 latin1 改为 gb2312或 gbk
# SERVER SECTION
#
----------------------------------------------------------------------
#
# The following options will be read by the MySQL