mysqldump -u用户名 --single-transaction -p密码 -h 服务器 -P端口 库名 表1 表2 .....>/tmp/db.sql;
--single-transaction 防止锁表
评论