Mysql多主机复制 [英] Mysql multimaster replication

查看:109
本文介绍了Mysql多主机复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在三个不同的位置有3个MySQL数据库( Master 1,Master 2,Master 3 ),我想从所有3个位置获取数据到中央数据库( Slave 1 )位于我的办公室。



主设备的所有数据都应该在从设备1中可用,不需要在主设备之间同步数据。 / i>



有没有办法用其他任何方法实现相同的目标? ,我实际上只需要在数据库中同步两个表。



请帮我实现同样的目标。



我尝试过的事情:



我找到了有关精子奴隶复制的文章,但没有找到Multimaster复制的文章。

I have 3 MySQL Database (Master 1, Master 2, Master 3) at three different locations, i would like to get the data from all 3 Location to a Central Database (Slave 1)located in my office.

All data from masters should be available in slave 1, syncing data across masters is not required.

Is there any way to achieve the same with any other methods? , i actually need to sync only two tables in database.

Please help me in achieving the same.

What I have tried:

I have found articles for muter slave replication, but not Multimaster replication.

推荐答案

我认为您正在寻找的是多源复制 - 请参阅这组文章 MySQL :: MySQL 5.7参考手册:: 16.1.4 MySQL多源复制 [ ^ ]
I think what you are looking for is "Multi-Source Replication" - see this set of articles MySQL :: MySQL 5.7 Reference Manual :: 16.1.4 MySQL Multi-Source Replication[^]


这篇关于Mysql多主机复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆