mysql -e "SHOW VARIABLES LIKE 'slow_query_log';"
+----------------+-------+
| Variable_name | Value |
+----------------+-------+
| slow_query_log | ON |
=============
mysql -e "SHOW VARIABLES LIKE 'slow_query_log_file';"
+---------------------+-------------------------------+
| Variable_name | Value |
+---------------------+-------------------------------+
| slow_query_log_file | /var/lib/mysql/slow-query.log |
+---------------------+-------------------------------+
As per your request, we raised the long_query_time to 5 seconds.We have successfully resumed the MySQL service.
+-----------------+----------+
| Variable_name | Value |
+-----------------+----------+
| long_query_time | 5.000000 |
+-----------------+----------+
defaults
slow_query_log = OFF= uses words rather than 0 and `1Enable slow query log
Check slow query log is on**
change length of queries that are logged