Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2415b321
Commit
2415b321
authored
Jun 22, 2006
by
gluh@eagle.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.1-kt
into mysql.com:/home/gluh/MySQL/Merge/5.1-kt
parents
02518004
4c746fdb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
mysql-test/r/log_state.result
mysql-test/r/log_state.result
+11
-11
mysql-test/t/log_state.test
mysql-test/t/log_state.test
+8
-8
No files found.
mysql-test/r/log_state.result
View file @
2415b321
...
@@ -14,15 +14,15 @@ set global general_log= ON;
...
@@ -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)
...
@@ -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);
...
@@ -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;
...
@@ -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
mysql-test/t/log_state.test
View file @
2415b321
...
@@ -11,11 +11,11 @@ Variable_name = 'general_log' or Variable_name = 'slow_query_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,,);
...
@@ -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;
...
@@ -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;
...
@@ -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;
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment