Skip to content

Instantly share code, notes, and snippets.

View trangnth's full-sized avatar
🐄
love heals all

Trang Nguyen trangnth

🐄
love heals all
  • University of Engineering and Technology
  • Hanoi, Vietnam
View GitHub Profile
@trangnth
trangnth / mysql_query_log.md
Created December 20, 2019 02:09 — 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';