mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-24 10:13:30 +07:00
Better master and support MariaDB GTID
This commit is contained in:
@@ -7,9 +7,14 @@
|
||||
|
||||
[mysqld]
|
||||
server_id={{ mysql_server_id }}
|
||||
log-bin
|
||||
log_bin = mysql-bin
|
||||
log-bin-index = mysql-bin.index
|
||||
expire_logs_days = {{ mysql_expire_logs_days }}
|
||||
max_binlog_size = {{ mysql_max_binlog_size }}
|
||||
|
||||
# MariaDB only?
|
||||
#gtid_domain_id=1
|
||||
{% if mysql_vendor == 'mariadb' and mysql_gtid %}
|
||||
# MariaDB only
|
||||
gtid_domain_id={{ mysql_gtid_domain_id }}
|
||||
{% endif %}
|
||||
|
||||
; vim: set ft=dosini :
|
||||
|
||||
Reference in New Issue
Block a user