? extmail ? ? mysql ? ? 双主 ?      2015-10-28

环境 : extmail自动系统,mysql:

原理:两个主从设置,通过分别设置对方为主从,来实现。日志通过log-bin(中继日志)来实现传递,需要确保对方可以相互登陆。

1、关闭skip-networking 设置,开启网络监听;

2、开启数据库远程读写:

grant replication slave, file, select on *.* to '$user'@'192.1