免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2352 | 回复: 8
打印 上一主题 下一主题

MYSQL能否实现如下复制模式A<==>B<==>C [复制链接]

论坛徽章:
0
1 [报告]
发表于 2008-03-14 09:15 |只看该作者
A<====>B<====>C

这种是完全可以的!
不过B上要有两个实例。

论坛徽章:
0
2 [报告]
发表于 2008-03-14 09:26 |只看该作者
能否说明一下~

论坛徽章:
0
3 [报告]
发表于 2008-03-14 10:13 |只看该作者
原帖由 suxiangkun 于 2008-3-14 09:26 发表
能否说明一下~


两个实例就是用MYSQLD_MULTI管理的两个MYSQL实例。

端口不同。
具体见:
http://blog.chinaunix.net/u/29134/showart_470685.html

论坛徽章:
0
4 [报告]
发表于 2008-03-14 13:05 |只看该作者
谢谢,已经明白了

论坛徽章:
0
5 [报告]
发表于 2008-03-17 00:36 |只看该作者
呵呵,高级,开眼界了

论坛徽章:
0
6 [报告]
发表于 2008-03-18 18:02 |只看该作者
B上不需要两个实例,一个就可以了mysql5完全支持,手册里有说明:

--log-slave-updates

Normally, a slave does not log to its own binary log any updates that are received from a master server. This option tells the slave to log the updates performed by its SQL thread to its own binary log. For this option to have any effect, the slave must also be started with the --log-bin option to enable binary logging. --log-slave-updates is used when you want to chain replication servers. For example, you might want to set up replication servers using this arrangement:

A -> B -> C

Here, A serves as the master for the slave B, and B serves as the master for the slave C. For this to work, B must be both a master and a slave. You must start both A and B with --log-bin to enable binary logging, and B with the --log-slave-updates option so that updates received from A are logged by B to its binary log.

论坛徽章:
0
7 [报告]
发表于 2008-03-19 08:54 |只看该作者
原帖由 gucuiwen 于 2008-3-18 18:02 发表
B上不需要两个实例,一个就可以了mysql5完全支持,手册里有说明:

--log-slave-updates

Normally, a slave does not log to its own binary log any updates that are received from a master server. T ...



仔细看看LZ的要求!

论坛徽章:
0
8 [报告]
发表于 2008-03-19 09:39 |只看该作者
呵呵,确实看错了。只看了前面,后面没仔细看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP