查看mysql的字符集及编码 --查看数据库的字符集 show variables like 'character\_set\_%'; show variables like 'collation_%'; 查看默认编码 mysql --help | grep character-set