Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mysql_repl_percona [2021/02/09 20:04] – andonovj | mysql_repl_percona [2021/02/09 20:26] (current) – [Appendix] andonovj | ||
---|---|---|---|
Line 196: | Line 196: | ||
===MySQL Basic Config=== | ===MySQL Basic Config=== | ||
- | < | + | < |
--- | --- | ||
- name: install MySQL Servers | - name: install MySQL Servers | ||
Line 557: | Line 557: | ||
### | ### | ||
- | ### | + | ### |
+ | </ | ||
+ | |||
+ | |||
+ | ===master.cnf=== | ||
+ | < | ||
+ | [mysqld] | ||
+ | log-bin=mysql-bin | ||
+ | server-id=1 | ||
+ | binlog-do-db=repDB | ||
+ | </ | ||
+ | |||
+ | ===Slave.cnf=== | ||
+ | < | ||
+ | [mysqld] | ||
+ | server-id=2 | ||
+ | read_only=1 | ||
</ | </ |