标签:
实验:
一主多从
3307配置:
[mysqld]
log-slave-updates #中间者需要开这个
log-bin = /data/3307/mysql-bin
expire_logs_days = 7 #binlog保存多少天 find –mtime +7
防止从库被写忽略同步db.或者从库回收权限:
[mysqld]
slave-skip-errors = 1032,1062
replicate-ignore-db = mysql
binlog-ignore-db = mysql
binlog-ignore-db = information_schema
binlog-ignore-db = performance_schema
双向同步
3306
[mysqld]
log-bin = /data/3306/mysql-bin
log-slave-updates
3307
[mysqld]
log-bin = /data/3308/mysql-bin
log-slave-updates
标签:
原文地址:http://www.cnblogs.com/iiiiher/p/5684843.html