Project

General

Profile

Mysql Active Log SQL

SUDO -s
mysql --defaults-file=/etc/mysql/debian.cnf
SQL:>
SET global log_output = 'FILE';
SET global general_log_file='mysql_general.log';
SET global general_log = 1; #active
SET global general_log = 0; #deactive
EXIT
tail -f /var/lib/mysql/mysql_general.log