Home > Database > Mysql Tutorial > MySQL5.5主主复制配置方法及测试结果

MySQL5.5主主复制配置方法及测试结果

WBOY
Release: 2016-06-07 17:16:49
Original
1063 people have browsed it

1. 环境:CentOS5.5 x84,MySQL5.5.152. 两台机器:master1:192.168.5.143master2:192.168.0.1493. 单独编译安装MySQL,并测试连

10. 测试

实验1:启动两个服务,在任一mysql上进行操作,在另一mysql上均能体现出来。

实验2:启动两个服务,在master1上通过tpcc工具添加20个warehouse,数据占用硬盘约1.9G,,在两台机器上计算count(*),数据一致。

实验3:启动master1,在master1上通过tpcc工具添加一个warehouse,启动master2,同步一段时间后,计算count(*),结果一致。


ps,MySQL的主主复制实际上就是双向的主从复制。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template