I see there is a good option how to enable slow log queries and queries without indexes:
SET GLOBAL log_queries_not_using_indexes=1; SET GLOBAL log_slow_queries=1;
OK, OK, but it seems that they are being written to the same log file that I specified in the my.cnf configuration file:
[mysqld] long_query_time = 1 log-slow-queries = /var/log/mysql/mysql-slow.log
I use mysqldumpslow to view the slowest queries, but what do I need to do to see queries without indexes separately?
Could you help me?
Thank you in advance!
Best
Jakub
source share