2015-08-11 15:22:58 +07:00
|
|
|
# Master must listen for replication
|
|
|
|
mysql_bind_address: '0.0.0.0'
|
|
|
|
|
|
|
|
# Master durability
|
|
|
|
mysql_sync_binlog: '1'
|
|
|
|
mysql_innodb_flush_log_at_trx_commit: '1'
|
|
|
|
|
|
|
|
mysql_databases:
|
|
|
|
- 'testrepl'
|
|
|
|
- 'norepl'
|
|
|
|
|
|
|
|
mysql_users:
|
|
|
|
- name: 'replication'
|
|
|
|
password: '1a2b3c'
|
2016-02-09 23:43:49 +07:00
|
|
|
priv: '*.*:REPLICATION SLAVE'
|
2015-08-11 15:22:58 +07:00
|
|
|
host: '%'
|
|
|
|
mysql_replication_master: true
|
|
|
|
mysql_replication_slave: false
|
|
|
|
mysql_server_id: 1
|
|
|
|
|
|
|
|
# vim: set ft=yaml :
|