MariaDB/Mysql的主从复制部署(Docker)
### 原文链接:https://blog.csdn.net/clearlxj/article/details/88313033
### 注意文中有一个笔误: /home/lxj/hedisql /home/lxj/heidisql/
## 修改master_my.cnf,在 [mysqld] 节点下添加
[mysqld]
server-id=1
log_bin=master-bin
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog-ignore-db=performance_schema
binlog-ignore-db=test
innodb_flush_log_at_trx_commit=1
binlog_format=mixed
## 修改slave1_my.cnf,在 [mysqld] 节点下添加
[mysqld]
server-id=2
relay-log-index=slave-relay-bin.index
relay-log=slave-relay-bin
relay_log_recovery=1