Linux-mysql-jsp乱码

在 /etc/my.cnf添加下列字段可将characterset永久变为utf8


[client]

default-character-set=utf8

[mysql]
default-character-set=utf8


[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'

character-set-server = utf8


用status查看

你可能感兴趣的:(mysql,linux,jsp,乱码,utf8)