해당 DB 버전은 MySQL 5.6.17 이다
서버 설정
admin@localhost:(none) 12:32:06>show global variables like "slow%";
+---------------------+-----------------------------------+
| Variable_name | Value |
+---------------------+-----------------------------------+
| slow_launch_time | 2 |
| slow_query_log | ON |
| slow_query_log_file | /mysql/logs/slow_query.log |
+---------------------+-----------------------------------+admin@localhost:(none) 12:33:07>show global variables like "long_query%";
+-----------------+----------+
| Variable_name | Value |
+-----------------+----------+
| long_query_time | 1.000000 |
+-----------------+----------+
1 row in set (0.00 sec)admin@localhost:(none) 12:33:30>show global variables like "min%";
+------------------------+-------+
| Variable_name | Value |
+------------------------+-------+
| min_examined_row_limit | 0 |
+------------------------+-------+
1 row in set (0.00 sec)admin@localhost:(none) 12:33:50>show global variables like "log%";
+----------------------------------------+-------------------------------------+
| Variable_name | Value |
+----------------------------------------+-------------------------------------+
| log_error | /mysql/logs/mysqld.err |
| log_output | FILE |
| log_queries_not_using_indexes | OFF |
| log_slave_updates | ON |
| log_slow_admin_statements | ON |
| log_slow_slave_statements | OFF |
| log_throttle_queries_not_using_indexes | 0 |
| log_warnings | 1 |
+----------------------------------------+-------------------------------------+
[root@0hostname /]# ls -al /mysql/logs/slow_query.log
-rw-r----- 1 mysql mysql 0 Nov 24 01:12 /mysql/logs/slow_query.log
- 슬로우 쿼리 설정, 파일 권한 모두 문제 없는 것으로 판명
- 관련 에러로그 없음
- 일시적으로 general log를 활성화 후, 확인한 결과 문제 없음
admin@localhost:(none) 12:48:31>FLUSH SLOW LOGS; Query OK, 0 rows affected (0.04 sec)