简体   繁体   English

使用Mysql复制生产数据库

[英]Copying production database using Mysql

I have a huge production DB of around 30GB using Mysql present in remote machine. 使用远程计算机中存在的Mysql,我有大约30GB的巨大生产数据库。 I want to make a copy of that DB on my local Mysql setup. 我想在本地Mysql设置中复制该数据库。 But I don't want to use SQL dump files. 但是我不想使用SQL转储文件。

Is there any alternative to make a copy of production DB to my local machine without using SQL dump files? 是否有其他选择可以在不使用SQL转储文件的情况下将生产数据库副本复制到本地计算机? Please tell me. 请告诉我。

Thanks in advance. 提前致谢。

If you are using MySQL 5.x - you may use replication mechanism to make "mirror" database. 如果您使用的是MySQL 5.x,则可以使用复制机制制作“镜像”数据库。 You can run replication, then stop slave database and back it up very fast without stopping master database. 您可以运行复制,然后停止从数据库并非常快速地备份它,而无需停止主数据库。

If you want to use it for backup - you can find more information here: 如果要使用它进行备份-您可以在此处找到更多信息:

Using Replication for Backups at dev.mysql.com 在dev.mysql.com上使用复制进行备份

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

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