mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.1-kt
into mysql.com:/home/gluh/MySQL/Merge/5.1-kt
This commit is contained in:
commit
2415b3210e
2 changed files with 19 additions and 19 deletions
|
@ -14,15 +14,15 @@ set global general_log= ON;
|
||||||
create table t1(f1 int);
|
create table t1(f1 int);
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
event_time user_host thread_id server_id command_type argument
|
event_time user_host thread_id server_id command_type argument
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query create table t1(f1 int)
|
TIMESTAMP USER_HOST # 1 Query create table t1(f1 int)
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query select * from mysql.general_log
|
TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
|
||||||
set global general_log= OFF;
|
set global general_log= OFF;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
event_time user_host thread_id server_id command_type argument
|
event_time user_host thread_id server_id command_type argument
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query create table t1(f1 int)
|
TIMESTAMP USER_HOST # 1 Query create table t1(f1 int)
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query select * from mysql.general_log
|
TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query set global general_log= OFF
|
TIMESTAMP USER_HOST # 1 Query set global general_log= OFF
|
||||||
set global general_log= ON;
|
set global general_log= ON;
|
||||||
flush logs;
|
flush logs;
|
||||||
show global variables
|
show global variables
|
||||||
|
@ -46,7 +46,7 @@ sleep(2)
|
||||||
0
|
0
|
||||||
select * from mysql.slow_log;
|
select * from mysql.slow_log;
|
||||||
start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text
|
start_time user_host query_time lock_time rows_sent rows_examined db last_insert_id insert_id server_id sql_text
|
||||||
TIMESTAMP, root[root] @ localhost [] USER_HOST, QUERY_TIME 1 0 test 0 0 1 select sleep(2)
|
TIMESTAMP USER_HOST QUERY_TIME 00:00:00 1 0 test 0 0 1 select sleep(2)
|
||||||
show global variables
|
show global variables
|
||||||
where Variable_name = 'log' or Variable_name = 'log_slow_queries' or
|
where Variable_name = 'log' or Variable_name = 'log_slow_queries' or
|
||||||
Variable_name = 'general_log' or Variable_name = 'slow_query_log';
|
Variable_name = 'general_log' or Variable_name = 'slow_query_log';
|
||||||
|
@ -67,9 +67,9 @@ create table t1(f1 int);
|
||||||
drop table t1;
|
drop table t1;
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
event_time user_host thread_id server_id command_type argument
|
event_time user_host thread_id server_id command_type argument
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query create table t1(f1 int)
|
TIMESTAMP USER_HOST # 1 Query create table t1(f1 int)
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query drop table t1
|
TIMESTAMP USER_HOST # 1 Query drop table t1
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query select * from mysql.general_log
|
TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
|
||||||
set global general_log= OFF;
|
set global general_log= OFF;
|
||||||
truncate table mysql.general_log;
|
truncate table mysql.general_log;
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
|
@ -151,5 +151,5 @@ set global general_log=ON;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
event_time user_host thread_id server_id command_type argument
|
event_time user_host thread_id server_id command_type argument
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query drop table t1
|
TIMESTAMP USER_HOST # 1 Query drop table t1
|
||||||
TIMESTAMP root[root] @ localhost [] # 1 Query select * from mysql.general_log
|
TIMESTAMP USER_HOST # 1 Query select * from mysql.general_log
|
||||||
|
|
|
@ -11,11 +11,11 @@ Variable_name = 'general_log' or Variable_name = 'slow_query_log';
|
||||||
flush logs;
|
flush logs;
|
||||||
set global general_log= ON;
|
set global general_log= ON;
|
||||||
create table t1(f1 int);
|
create table t1(f1 int);
|
||||||
--replace_column 1 TIMESTAMP 3 #
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 #
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
set global general_log= OFF;
|
set global general_log= OFF;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
--replace_column 1 TIMESTAMP 3 #
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 #
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
set global general_log= ON;
|
set global general_log= ON;
|
||||||
flush logs;
|
flush logs;
|
||||||
|
@ -27,7 +27,7 @@ connect (con1,localhost,root,,);
|
||||||
connection con1;
|
connection con1;
|
||||||
set session long_query_time=1;
|
set session long_query_time=1;
|
||||||
select sleep(2);
|
select sleep(2);
|
||||||
--replace_column 1 TIMESTAMP, 3 USER_HOST, 4 QUERY_TIME
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 QUERY_TIME
|
||||||
select * from mysql.slow_log;
|
select * from mysql.slow_log;
|
||||||
connection default;
|
connection default;
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ set global slow_query_log= ON;
|
||||||
connection con1;
|
connection con1;
|
||||||
set session long_query_time=1;
|
set session long_query_time=1;
|
||||||
select sleep(2);
|
select sleep(2);
|
||||||
--replace_column 1 TIMESTAMP, 3 USER_HOST, 4 QUERY_TIME
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 QUERY_TIME
|
||||||
select * from mysql.slow_log;
|
select * from mysql.slow_log;
|
||||||
disconnect con1;
|
disconnect con1;
|
||||||
connection default;
|
connection default;
|
||||||
|
@ -54,11 +54,11 @@ set global general_log= ON;
|
||||||
truncate table mysql.general_log;
|
truncate table mysql.general_log;
|
||||||
create table t1(f1 int);
|
create table t1(f1 int);
|
||||||
drop table t1;
|
drop table t1;
|
||||||
--replace_column 1 TIMESTAMP 3 #
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 #
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
set global general_log= OFF;
|
set global general_log= OFF;
|
||||||
truncate table mysql.general_log;
|
truncate table mysql.general_log;
|
||||||
--replace_column 1 TIMESTAMP 3 #
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 #
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
set global general_log= ON;
|
set global general_log= ON;
|
||||||
show global variables
|
show global variables
|
||||||
|
@ -109,14 +109,14 @@ truncate table mysql.general_log;
|
||||||
show variables like 'log_output';
|
show variables like 'log_output';
|
||||||
set global general_log=ON;
|
set global general_log=ON;
|
||||||
create table t1(f1 int);
|
create table t1(f1 int);
|
||||||
--replace_column 1 TIMESTAMP 3 #
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 #
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
set global general_log=OFF;
|
set global general_log=OFF;
|
||||||
set global log_output="FILE,TABLE";
|
set global log_output="FILE,TABLE";
|
||||||
show variables like 'log_output';
|
show variables like 'log_output';
|
||||||
set global general_log=ON;
|
set global general_log=ON;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
--replace_column 1 TIMESTAMP 3 #
|
--replace_column 1 TIMESTAMP 2 USER_HOST 3 #
|
||||||
select * from mysql.general_log;
|
select * from mysql.general_log;
|
||||||
|
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
|
|
Loading…
Add table
Reference in a new issue