时间:2021-07-01 10:21:17 帮助过:2人阅读
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
mysql实现,一主多从+级联同步+双向同步
标签: