Java代码
+--------------------------+---------------+| Variable_name | Value |+--------------------------+---------------+| character_set_client | latin1 || character_set_connection | latin1 || character_set_database | latin1 || character_set_filesystem | binary || character_set_results | latin1 || character_set_server | latin1 || character_set_system | utf8 |+--------------------------+---------------+引用
# 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=latin1
Java代码
+--------------------------+---------------+| Variable_name | Value |+--------------------------+---------------+| character_set_client | latin1 || character_set_connection | latin1 || character_set_database | gbk || character_set_filesystem | binary || character_set_results | latin1 || character_set_server | latin1 || character_set_system | utf8 |+--------------------------+---------------+引用
[client]
port=3306
[mysql]
default-character-set=latin1
引用
# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this
# file.
#
[mysqld]
Java代码
+--------------------------+---------------+| Variable_name | Value |+--------------------------+---------------+| character_set_client | gbk || character_set_connection | gbk || character_set_database | gbk || character_set_filesystem | binary || character_set_results | gbk || character_set_server | gbk || character_set_system | utf8 |+--------------------------+---------------+