I added the following to my.ini
log_slow_queries = "C:\Program Files (x86)\MySQL\MySQL Server 5.0\mysql-slow.log"
long_query_time = 3
log-queries-not-using-indexes
I restarted the MySQL service . The slow queries are getting listed in mysql-slow.log
but the issue is all the queries gets listed . I want to list only those queries which take more than 3 seconds
The following is an extract from mysql-slow.log
:
# Query_time: 0 Lock_time: 0 Rows_sent: 29 Rows_examined: 29
SHOW TABLES LIKE 'tblRaw2%';
Here Query_time is listed as 0 I want only those queries which takes more than 3 seconds . If there is any more fields to be set in my.ini please point out
Thanks