Answer the question
In order to leave comments, you need to log in
What can be used to track heavy queries in the mysql database?
Good afternoon!
What (preferably free) tool can track heavy queries in the mysql database. The site takes a long time to load when loading the ad list page. It is necessary to find out on what request time is spent. The site is written in php(yii).
I will be very grateful.
Answer the question
In order to leave comments, you need to log in
In my.cnf you need to add:
[mysqld]
...
slow_query_log = 1
slow_query_log_file = /var/log/mysql/slow.log
long_query_time = 10
log_queries_not_using_indexes = YES
log_slow_admin_statements = YES
to the heap:
mysqltop
utility for linux like top|atop}apachetop
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question