mysql相关操作 mysql导出数据库: mysqldump -h localhost -u root -p databasename > /home/bak.sql 查看mysql的编码设置: mysql> show variables like 'char%';