Skip to content

Instantly share code, notes, and snippets.

View dottwatson's full-sized avatar

Mirko Temperini dottwatson

View GitHub Profile
@dottwatson
dottwatson / mysql_query_log.md
Created May 24, 2024 07:31 — forked from joseluisq/mysql_query_log.md
How to enable the MySQL/MariaDB general query logs

How to enable the MySQL/MariaDB general query logs

  1. Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot
  1. Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';