Guest User

Untitled

a guest
Jul 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # How to Enable MySQL Query Logging
  2.  
  3. From the mysql client run:
  4.  
  5. ```
  6. mysql> SET GLOBAL general_log=true;
  7. mysql> SET GLOBAL general_log_file='general.log';
  8. ```
  9.  
  10. 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