From e51a980af1f4d594df819dec5b610c58f2c91a28 Mon Sep 17 00:00:00 2001 From: "Jasper N. Brouwer" Date: Wed, 28 Jun 2017 21:53:16 +0200 Subject: [PATCH] Don't use log_slow_queries for MariaDB 10.0+ (it's deprecated) --- templates/etc/mysql/my.cnf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/etc/mysql/my.cnf.j2 b/templates/etc/mysql/my.cnf.j2 index 0422944..4252704 100644 --- a/templates/etc/mysql/my.cnf.j2 +++ b/templates/etc/mysql/my.cnf.j2 @@ -26,7 +26,9 @@ log-error = {{ mysql_log_error }} {% if mysql_slow_query_log_enabled %} # Slow query log configuration. +{% if mysql_vendor not in ['mariadb', 'mariadbgalera'] or mysql_mariadb_version | version_compare('10.0', '<') %} log_slow_queries = 1 +{% endif %} slow_query_log = 1 slow_query_log_file = {{ mysql_slow_query_log_file }} long_query_time = {{ mysql_slow_query_time }}