简体   繁体   English

MySQL DB迁移和同步

[英]MySQL DB migration and Sync

I have a MySQL DB running in production. 我有一个正在运行的MySQL数据库。 I want to replicate it to another server with no downtime and after replicating it I want them sync. 我希望将其复制到另一台服务器,而不会造成停机,并且在复制之后我希望它们同步。 If I do it through taking the DB dump and restore it to new server and then starting sync there are fair chances to loose some records. 如果我通过执行数据库转储并将其还原到新服务器,然后开始同步来完成此操作,则很有可能会丢失一些记录。 How should it be done with no downtime and with consistency? 如何在不停机的情况下保持一致性?

Thanks 谢谢

看一看MySQL数据库复制

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

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