1
SET GLOBAL query_log_file="DRIZZLETEST_VARDIR/query.log";
2
SET GLOBAL query_log_file_enabled=TRUE;
3
SHOW VARIABLES LIKE 'query_log_threshold%';
5
query_log_threshold_execution_time 0
6
query_log_threshold_lock_time 0
7
query_log_threshold_rows_examined 0
8
query_log_threshold_rows_sent 0
9
query_log_threshold_session_time 0
10
query_log_threshold_tmp_tables 0
11
query_log_threshold_warnings 0
12
SET GLOBAL query_log_threshold_execution_time=500000;
13
SELECT @@query_log_threshold_execution_time;
14
@@query_log_threshold_execution_time
24
Checking attributes and values of query SELECT SLEEP(0.5);
25
execution_time value between 0.5 and 0.59 OK
26
Checking attributes and values of query SELECT SLEEP(0.5);
27
arg value equals SELECT SLEEP(0.5); OK
29
# 0000-00-00T00:00:00.000000
30
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
31
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
36
SET GLOBAL query_log_file_enabled=FALSE;
37
SET GLOBAL query_log_file_enabled=TRUE;
38
SET GLOBAL query_log_threshold_execution_time=0;
39
SELECT @@query_log_threshold_execution_time;
40
@@query_log_threshold_execution_time
45
Checking attributes and values of query SELECT 'one';
46
arg value equals SELECT 'one'; OK
48
# 0000-00-00T00:00:00.000000
49
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
50
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000