From f8d5ece837a92ed0e3d51fceb98a811823dc2348 Mon Sep 17 00:00:00 2001 From: Daniel Krysiak Date: Wed, 20 Mar 2019 16:19:08 +0100 Subject: [PATCH] Fix Mariadb replication config This patch changes name of Mariadb binary and relay log files. From now they start with 'mariadb' instead of 'mysql'. Thanks to this fact binary log names on a master and slaves have same name and we avoid mess in data directory once we promote one of slaves to the master. Change-Id: I18823b7a78e07b7999c937d068fb9cce9ed00285 Co-Authored-By: Kasper Hasior --- trove/templates/mariadb/replica.config.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trove/templates/mariadb/replica.config.template b/trove/templates/mariadb/replica.config.template index 34b377767c..516bcf6cf4 100644 --- a/trove/templates/mariadb/replica.config.template +++ b/trove/templates/mariadb/replica.config.template @@ -1,4 +1,4 @@ [mysqld] -log_bin = /var/lib/mysql/data/mysql-bin.log -relay_log = /var/lib/mysql/data/mysqld-relay-bin.log +log_bin = /var/lib/mysql/data/mariadb-bin.log +relay_log = /var/lib/mysql/data/mariadb-relay-bin.log read_only = true