MySQL Log slow queries

edit /etc/my.cnf:

log-slow-queries=/var/log/mysql-slow.log
set-variable=long_query_time=6

restart mysqld

You can leave a response, or trackback from your own site.

Leave a Reply