mariadb: Aktiviere slowlog in der globalen Konfigurationsdatei

This commit is contained in:
phil 2022-06-09 13:38:00 +02:00
parent 415a6055e8
commit 10da0a723e
6 changed files with 21 additions and 23 deletions

11
templates/90-sao.cnf.j2 Normal file
View file

@ -0,0 +1,11 @@
# {{ ansible_managed }}
[mysqld]
bind_address={{ mariadb.bind_address|default("127.0.0.1") }}
# Slow-Log
slow_query_log = 1
slow_query_log_file = /var/log/mysql/mariadb-slow.log
long_query_time = 10
log_slow_rate_limit = 1000
log_slow_verbosity = query_plan