By Lars Nielsen · 20 May 2026 This is how you enable logging in MySQLSET GLOBAL general_log=1;SET GLOBAL general_log_file='/var/log/mariadb.log';SET GLOBAL slow_query_log_file='/var/log/mariadb-slow.log';SET GLOBAL slow_query_log=1;Related readingone MariaDB process shared by three sites Filed under Devops Share this article Leave a comment Comments are reviewed before they appear. Your name Subject Comment Basic HTML allowed: links, emphasis, code and lists. Web addresses become links automatically. Leave this field blank
Leave a comment
Comments are reviewed before they appear.