문제

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