Skip to content

Instantly share code, notes, and snippets.

View miraclebg's full-sized avatar
⛰️
Wishing for a hike :)

Martin Kovachev miraclebg

⛰️
Wishing for a hike :)
View GitHub Profile
@miraclebg
miraclebg / mysql_query_log.md
Created January 26, 2023 13:24 — 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';