开发者

Taking a MySQL snapshot and recreating the database?

开发者 https://www.devze.com 2023-01-22 12:40 出处:网络
If a snapshot of the database is taken, can it be copied over to another drive and re-cr开发者_JAVA技巧eated?I\'m not sure what you mean by \"copied over to another drive\", but a very good tool to cr

If a snapshot of the database is taken, can it be copied over to another drive and re-cr开发者_JAVA技巧eated?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消