View: Enable/Disable MySQL Log

  1. 6 years ago by sox
    # Enable
    mysql> SET GLOBAL general_log = 'ON';
    
    # On Debian, you can check log on /var/run/mysqld/mysqld.log
    tail -f /var/run/mysqld/mysqld.log
    
    # Disable
    mysql> SET GLOBAL general_log = 'OFF';
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2138"></script>

0 comment about "Enable/Disable MySQL Log"