You may also pipe the output to gzip:
mysqldump --user=abc --password=abc | gzip > backup.sql.gz
To execute on the other servers, without uncompressing, use the following command:
zcat backup.sql.gz | mysql --user=abc --password=abc
mysqldump --user=abc --password=abc | gzip > backup.sql.gz
To execute on the other servers, without uncompressing, use the following command:
zcat backup.sql.gz | mysql --user=abc --password=abc
本文介绍了如何使用mysqldump命令进行MySQL数据库的备份,并压缩为gz文件。此外还提供了如何在其他服务器上直接从gz文件恢复数据的方法,无需先解压文件。
1347

被折叠的 条评论
为什么被折叠?



