From dff062b3a655cfbb4ed88e9259d18e48e74761cd Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Sun, 19 Mar 2017 09:38:24 +0100 Subject: [PATCH] Activate binary-logs in MariaDB/MySQL The binary log contains a record of all changes to the databases, both data and structure. It consists of a set of binary log files and an index. Activate it in MariaDB will fix Telegraf error on Mysql/MariaDB inputs retrieval. Change-Id: I040ed75ffbf1afded87ba0f8f63a3e384707d1fb Closes-Bug: #1673969 --- ansible/roles/mariadb/templates/galera.cnf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/mariadb/templates/galera.cnf.j2 b/ansible/roles/mariadb/templates/galera.cnf.j2 index d74c74f29e..d184e02865 100644 --- a/ansible/roles/mariadb/templates/galera.cnf.j2 +++ b/ansible/roles/mariadb/templates/galera.cnf.j2 @@ -16,6 +16,7 @@ port={{ mariadb_port }} log-error=/var/log/kolla/mariadb/mariadb.log +log-bin=mysql-bin binlog_format=ROW default-storage-engine=innodb innodb_autoinc_lock_mode=2