执行/etc/init.d/mysql stop停止MySQL编辑/etc/mysql/my.cnf,在[client]区段和[mysqld]区段内各添加一行default-character-set=gbk执行/etc/init.d/mysql start启动MySQL在mysql命令行下面执行show variables like 'character%';可以看到默认字符集已经修改