سؤال

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?

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top