2019-11-15 23:06:27 +01:00
|
|
|
[mysqld.{{ primary_db.name }}]
|
2019-09-27 15:29:34 +02:00
|
|
|
server_id = 1
|
2019-11-15 23:06:27 +01:00
|
|
|
port = {{ primary_db.port }}
|
|
|
|
datadir = {{ primary_db.datadir }}
|
|
|
|
socket = {{ primary_db.datadir }}/mysql.sock
|
|
|
|
pid-file = {{ primary_db.datadir }}/mysql.pid
|
|
|
|
log_bin = {{ primary_db.logdir }}/mysql-bin.log
|
2019-09-27 15:29:34 +02:00
|
|
|
sync_binlog = 1
|
|
|
|
binlog-format = ROW
|
|
|
|
innodb_flush_log_at_trx_commit = 1
|
|
|
|
|
2019-11-15 23:06:27 +01:00
|
|
|
[mysqld.{{ replica_db.name }}]
|
2019-09-27 15:29:34 +02:00
|
|
|
server_id = 2
|
2019-11-15 23:06:27 +01:00
|
|
|
port = {{ replica_db.port }}
|
|
|
|
datadir = {{ replica_db.datadir }}
|
|
|
|
socket = {{ replica_db.datadir }}/mysqld_replica.sock
|
|
|
|
pid-file = {{ replica_db.datadir }}/mysqld_replica.pid
|
|
|
|
log_bin = {{ replica_db.logdir }}/mysql-bin.log
|
|
|
|
relay-log = {{ replica_db.logdir }}/relay-bin
|
|
|
|
relay-log-index = {{ replica_db.logdir }}/relay-bin.index
|
|
|
|
master-info-file = {{ replica_db.logdir }}/master.info
|
|
|
|
relay-log-info-file = {{ replica_db.logdir }}/relay-log.info
|
2019-09-27 15:29:34 +02:00
|
|
|
|
|
|
|
[mysqld_multi]
|
|
|
|
mysqld = /usr/bin/mysqld_safe
|
|
|
|
user = multi_admin
|
|
|
|
password = multipass
|
|
|
|
|
|
|
|
[mysqld_safe]
|
2019-10-01 08:29:40 +02:00
|
|
|
log-error={{ mysql_safe_err_log }}
|
2019-09-27 15:29:34 +02:00
|
|
|
pid-file=/var/run/mariadb/mariadb.pid
|