Ok at the end i resolved using:
SET global log_output = 'FILE';
SET global general_log_file='/Applications/MAMP/logs/mysql_general.log';
SET global general_log = 1;
thanks anyway
Question
I have a simple localhost website i would like to log all queries via mysql or mysql client or mysql plugin or whatever in realtime
So that i can see in realtime which queries are runned from the site
is it possible somehow?
Solution
Ok at the end i resolved using:
SET global log_output = 'FILE';
SET global general_log_file='/Applications/MAMP/logs/mysql_general.log';
SET global general_log = 1;
thanks anyway
OTHER TIPS
So that i can see in realtime which queries are runned from the site
You can run: SHOW PROCESSLIST; Under mysql. http://dev.mysql.com/doc/refman/5.1/en/show-processlist.html
I have a simple localhost website i would like to log
Log all queries before run for example in log file.