数据导出(备份)
mysqldump -h127.0.0.1 -uusername -ppassword dbname > tmp.dump
数据导入(恢复)
mysql -h127.0.0.1 -uusername -ppassword dbname < tmp.dump
mysqldump -h127.0.0.1 -uusername -ppassword dbname > tmp.dump
mysql -h127.0.0.1 -uusername -ppassword dbname < tmp.dump