MySql Enable Logs for Queries , Expert Way!
show variables like 'general_log%'
+------------------+------------------------------------------------------------
| Variable_name | Value
+------------------+------------------------------------------------------------
| general_log | OFF
| general_log_file | C:\ProgramData\MySQL\MySQL Server 5.5\Data\pixomachine.log
+------------------+------------------------------------------------------------
set GLOBAL general_log='ON';
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld, Version: 5.5.25a (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: MySQL
Time Id Command Argument
130310 1:09:40 1 Query select * from users
+------------------+------------------------------------------------------------
| Variable_name | Value
+------------------+------------------------------------------------------------
| general_log | OFF
| general_log_file | C:\ProgramData\MySQL\MySQL Server 5.5\Data\pixomachine.log
+------------------+------------------------------------------------------------
set GLOBAL general_log='ON';
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld, Version: 5.5.25a (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: MySQL
Time Id Command Argument
130310 1:09:40 1 Query select * from users
Comments