在mysql命令行下的修改只是临时的,要到文件中修改才行
[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
--查看数据库的字符集
show variables like 'character\_set\_%';
show variables like 'collation_%';
导入数据