简体   繁体   English

mysql 是否有更快的备份和恢复方法?

[英]Is there a faster way to backup and restore for mysql?

Sql Server and Oracle have commercial products like Idera (Sql Safe) and Quest (LiteSpeed) that dramatically speed up backup and restores. Sql 服务器和 Oracle 拥有像 Idera (Sql Safe) 和 Quest (LiteSpeed) 这样的商业产品,可以显着加快备份和恢复速度。

Does mysql have any commercial software like that? mysql有这样的商业软件吗?

I'm working with large amounts of data in mysql and if we have to restore it takes 8-10 hours.我正在处理 mysql 中的大量数据,如果我们必须恢复它需要 8-10 小时。 So I'm hoping to move to a commercial product that can do it faster.所以我希望转向可以更快地完成的商业产品。

Any thoughts?有什么想法吗?

MySQL Backup & Restore Databases Software 7.0 is one, but Restoring a backup is mostly a long series of INSERT statements so you check here for tips on improving performance Speed of INSERT Statements MySQL 备份和恢复数据库软件 7.0就是其中之一,但恢复备份主要是一长串 INSERT 语句,因此您可以在此处查看有关提高INSERT 语句性能速度的提示

You could check out xtrabackup .您可以查看xtrabackup It is still alpha, but according to the last release announcement it "shows perfect stable results in our tests".它仍然是 alpha 版本,但根据上次发布公告,它“在我们的测试中显示出完美的稳定结果”。

I have not tried it to know the performance, but it appears to be more low-level than the sql output that mysqldump generates.我没有试过它来了解性能,但它似乎比 mysqldump 生成的 sql output 更底层。

If a commercial option works for you, check out InnoDB Hot Backup .如果商业选项适合您,请查看InnoDB 热备份 They say that backup time is comparable to file copy time and recovery is faster.他们说备份时间与文件复制时间相当,恢复速度更快。

Online backups are not exactly what you are looking for.在线备份并不完全符合您的要求。 The tools out there that exist for MySQL don't provide a lot of functionality that other DBMS vendors have.现有的 MySQL 工具没有提供其他 DBMS 供应商拥有的很多功能。 If you enable MySQL binary logs you can have "point in time" recovery.如果启用 MySQL 二进制日志,则可以进行“时间点”恢复。 However, the initial load will still take forever.但是,初始加载仍然需要很长时间。

http://dev.mysql.com/doc/refman/5.1/en/binary-log.html http://dev.mysql.com/doc/refman/5.1/en/binary-log.html

http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM