Categories: web, 80 wordsI noticed that sometimes MySql queries tend to last for a long time on my website.
To track this I have added the following in /etc/mysql/my.cnflog-slow-queries=/var/log/mysql/long-queries.log
long_query_time = 1This creates a log file (/var/log/mysql/long-queries.log) where it is possible to find which queries lasted more than the time (in seconds) specified on the second line.
More info at http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html
Send feedback •Permalink
http://blogs.delerue.org/htsrv/trackback.php/44
No Comments/Trackbacks/Pingbacks for this post yet...
[Login...] [Register...]