Activate slow queries log
If your mysql database is not as fast as it used to be, maybe it is a good idea to activate the slow queries log. Add the following lines in your .my.cnf file:
CODE:
-
[mysqld]
-
log_slow_queries=/var/log/mysql-slow-queries.log
-
long_query_time=2
All the queries that take more than 2sec to execute will be logged in the /var/log/mysql-slow-queries.log file
May 5th, 2007 at 6:03 pm
Hi
You are The Best!!!
Bye