Last active
April 24, 2016 12:59
-
-
Save lmeyer/bf3d20aa7dd3bf2470497458e48ad513 to your computer and use it in GitHub Desktop.
View and enable mySQL logs
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
| mysql> SHOW VARIABLES LIKE "general_log%"; | |
| +------------------+----------------------------+ | |
| | Variable_name | Value | | |
| +------------------+----------------------------+ | |
| | general_log | OFF | | |
| | general_log_file | /var/run/mysqld/mysqld.log | | |
| +------------------+----------------------------+ | |
| mysql> SET GLOBAL general_log = 'ON'; | |
| tail -f /var/run/mysqld/mysqld.log | |
| mysql> SET GLOBAL general_log = 'OFF'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment