Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # How to Enable MySQL Query Logging
- From the mysql client run:
- ```
- mysql> SET GLOBAL general_log=true;
- mysql> SET GLOBAL general_log_file='general.log';
- ```
- After this queries will be logged to the named file located in the MySQL data directory. e.g. `/var/lib/mysql/general.log`.
Add Comment
Please, Sign In to add comment