拍摄 MySQL 快照并重新创建数据库?

发布于 2024-09-29 06:06:33 字数 39 浏览 0 评论 0原文

如果拍摄了数据库快照,是否可以将其复制到另一个驱动器并重新创建?

If a snapshot of the database is taken, can it be copied over to another drive and re-created?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫九 2024-10-06 06:06:33

我不确定“复制到另一个驱动器”是什么意思,但是创建正在运行的数据库的快照的一个非常好的工具是 mysqlhotcopy

mysqlhotcopy 是一个 Perl 脚本,最初由 Tim Bunce 编写和贡献。它使用 FLUSH TABLES、LOCK TABLES 和 cp 或 scp 来进行数据库备份。这是备份数据库或单个表的快速方法,但它只能在数据库目录所在的同一台计算机上运行。

I'm not sure what you mean by "copied over to another drive", but a very good tool to create a snapshot of a running database is mysqlhotcopy.

mysqlhotcopy is a Perl script that was originally written and contributed by Tim Bunce. It uses FLUSH TABLES, LOCK TABLES, and cp or scp to make a database backup. It is a fast way to make a backup of the database or single tables, but it can be run only on the same machine where the database directories are located.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文