View

Enable/Disable MySQL Log

# 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';

You may also like