Created
August 13, 2020 17:45
-
-
Save jonny-rimek/c74390d4609a47a467732c02c7b64af3 to your computer and use it in GitHub Desktop.
Create query log in MySQL 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET GLOBAL general_log = 'ON'; | |
SET GLOBAL general_log_file = '/var/log/mysql/all.log'; | |
SET GLOBAL general_log = 'OFF'; | |
tail -f -n0 /var/log/mysql/all.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment