更改前
|
| 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 |
| character_sets_dir | /usr/local/mysql/share/mysql/charsets/ |
| collation_connection | latin1_swedish_ci |
| collation_database | gbk_chinese_ci
编辑/etc/init.d/mysql.server
更改 $bindir/mysqld_safe --datadir=$datadir --pid-file=$server_pid_file $other_args >dev/null 2>&1 &
为 $bindir/mysqld_safe --datadir=$datadir --pid-file=$server_pid_file $other_args --default-character-set=gbk>dev/null 2>&1 &
重启mysql /etc/init.d/mysql.server restart
阅读(2766) | 评论(0) | 转发(0) |