21
21
SELECT @@query_log_enabled, @@query_log_file_enabled;
22
22
@@query_log_enabled @@query_log_file_enabled
24
# 0000-00-00T00:00:00.000000
24
# start_ts=0-00-00T00:00:00.000000
25
25
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
26
26
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
29
29
SET GLOBAL query_log_file_enabled=TRUE;
31
# 0000-00-00T00:00:00.000000
31
# start_ts=0-00-00T00:00:00.000000
32
32
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
33
33
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
45
# 0000-00-00T00:00:00.000000
45
# start_ts=0-00-00T00:00:00.000000
46
46
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
47
47
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
50
50
SET GLOBAL query_log_file_enabled=TRUE;
52
# 0000-00-00T00:00:00.000000
52
# start_ts=0-00-00T00:00:00.000000
53
53
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
54
54
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
71
71
this is the second log file
72
72
this is the second log file
74
# 0000-00-00T00:00:00.000000
74
# start_ts=0-00-00T00:00:00.000000
75
75
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
76
76
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
79
79
SET GLOBAL query_log_file_enabled=TRUE;
81
# 0000-00-00T00:00:00.000000
81
# start_ts=0-00-00T00:00:00.000000
82
82
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
83
83
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
93
93
SELECT 'this is the third log file';
94
94
this is the third log file
95
95
this is the third log file
96
# 0000-00-00T00:00:00.000000
96
# start_ts=0-00-00T00:00:00.000000
97
97
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
98
98
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
100
100
# schema="third-log-file"
101
101
SET GLOBAL query_log_file="third-log-file";
103
# 0000-00-00T00:00:00.000000
103
# start_ts=0-00-00T00:00:00.000000
104
104
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
105
105
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
107
107
# schema="third-log-file"
108
108
SELECT @@query_log_enabled, @@query_log_file_enabled, @@query_log_file;
110
# 0000-00-00T00:00:00.000000
110
# start_ts=0-00-00T00:00:00.000000
111
111
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
112
112
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
114
114
# schema="third-log-file"
115
115
SELECT 'this is the third log file';
117
# 0000-00-00T00:00:00.000000
117
# start_ts=0-00-00T00:00:00.000000
118
118
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
119
119
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
122
122
SET GLOBAL query_log_file_enabled=TRUE;
124
# 0000-00-00T00:00:00.000000
124
# start_ts=0-00-00T00:00:00.000000
125
125
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
126
126
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
129
129
SELECT @@query_log_enabled, @@query_log_file_enabled;
131
# 0000-00-00T00:00:00.000000
131
# start_ts=0-00-00T00:00:00.000000
132
132
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
133
133
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
136
136
SET GLOBAL query_log_file_enabled=TRUE;
138
# 0000-00-00T00:00:00.000000
138
# start_ts=0-00-00T00:00:00.000000
139
139
# session_id=0 query_id=0 rows_examined=0 rows_sent=0 tmp_tables=0 warnings=0
140
140
# execution_time=0.000000 lock_time=0.000000 session_time=0.000000
145
145
SET GLOBAL query_log_file="DRIZZLETEST_VARDIR/query.log";
146
146
Checking attributes and values of query SELECT DATE(NOW());
147
start_ts value matches OK
148
148
Checking attributes and values of query SELECT DATE(NOW());
149
149
execution_time value matches OK
150
150
lock_time value matches OK