mysql导出数据库: mysqldump -h localhost -u root -p databasename > /home/bak.sql 查看mysql的编码设置: mysql> show variables like 'char%'; 转载于:https://www.cnblogs.com/mumue/p/3816374.html