long_query_time not working
Posted by: Vaibhav Upadhyay
Date: October 22, 2021 05:02AM

long_query_time=0.200 still mysql is capturing queries in slow log below 0.200 seconds.

Version = 5.7.34-log MySQL Community Server (GPL)

mysql> show global variables like "%slow_query_log%";
+---------------------+-------------------------------------+
| Variable_name | Value |
+---------------------+-------------------------------------+
| slow_query_log | ON |
| slow_query_log_file | /data/mysql_slow_log/mysql-slow.log |
+---------------------+-------------------------------------+
2 rows in set (0.02 sec)

mysql> show global variables like "%long_query_%";
+-----------------+------------+
| Variable_name | Value |
+-----------------+------------+
| long_query_time | 0.200 |
+-----------------+------------+
1 row in set (0.00 sec)

mysql> show global variables like "%log_queries_not_using_indexes%";
+-------------------------------+-------+
| Variable_name | Value |
+-------------------------------+-------+
| log_queries_not_using_indexes | OFF |
+-------------------------------+-------+
1 row in set (0.00 sec)

mysql>

Options: ReplyQuote


Subject
Written By
Posted
long_query_time not working
October 22, 2021 05:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.