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
d2132bc0
Commit
d2132bc0
authored
May 23, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into mysql.com:/home/jimw/my/mysql-5.1-clean
parents
fd2792cb
26d6e565
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
mysql-test/r/log_tables.result
mysql-test/r/log_tables.result
+13
-13
mysql-test/t/log_tables.test
mysql-test/t/log_tables.test
+6
-5
No files found.
mysql-test/r/log_tables.result
View file @
d2132bc0
...
@@ -2,14 +2,14 @@ use mysql;
...
@@ -2,14 +2,14 @@ use mysql;
truncate table general_log;
truncate table general_log;
select * from general_log;
select * from 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 []
THREAD_ID 1 Query select * from general_log
TIMESTAMP
USER_HOST
THREAD_ID 1 Query select * from general_log
truncate table slow_log;
truncate table slow_log;
select * from slow_log;
select * from 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
truncate table general_log;
truncate table general_log;
select * from general_log where argument like '%general_log%';
select * from general_log where argument like '%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 []
THREAD_ID 1 Query select * from general_log where argument like '%general_log%'
TIMESTAMP
USER_HOST
THREAD_ID 1 Query select * from general_log where argument like '%general_log%'
create table join_test (verbose_comment varchar (80), command_type varchar(64));
create table join_test (verbose_comment varchar (80), command_type varchar(64));
insert into join_test values ("User performed a usual SQL query", "Query");
insert into join_test values ("User performed a usual SQL query", "Query");
insert into join_test values ("New DB connection was registered", "Connect");
insert into join_test values ("New DB connection was registered", "Connect");
...
@@ -18,12 +18,12 @@ select verbose_comment, user_host, argument
...
@@ -18,12 +18,12 @@ select verbose_comment, user_host, argument
from mysql.general_log join join_test
from mysql.general_log join join_test
on (mysql.general_log.command_type = join_test.command_type);
on (mysql.general_log.command_type = join_test.command_type);
verbose_comment user_host argument
verbose_comment user_host argument
User performed a usual SQL query
root[root] @ localhost []
select * from general_log where argument like '%general_log%'
User performed a usual SQL query
USER_HOST
select * from general_log where argument like '%general_log%'
User performed a usual SQL query
root[root] @ localhost []
create table join_test (verbose_comment varchar (80), command_type varchar(64))
User performed a usual SQL query
USER_HOST
create table join_test (verbose_comment varchar (80), command_type varchar(64))
User performed a usual SQL query
root[root] @ localhost []
insert into join_test values ("User performed a usual SQL query", "Query")
User performed a usual SQL query
USER_HOST
insert into join_test values ("User performed a usual SQL query", "Query")
User performed a usual SQL query
root[root] @ localhost []
insert into join_test values ("New DB connection was registered", "Connect")
User performed a usual SQL query
USER_HOST
insert into join_test values ("New DB connection was registered", "Connect")
User performed a usual SQL query
root[root] @ localhost []
insert into join_test values ("Get the table info", "Field List")
User performed a usual SQL query
USER_HOST
insert into join_test values ("Get the table info", "Field List")
User performed a usual SQL query
root[root] @ localhost []
select verbose_comment, user_host, argument
User performed a usual SQL query
USER_HOST
select verbose_comment, user_host, argument
from mysql.general_log join join_test
from mysql.general_log join join_test
on (mysql.general_log.command_type = join_test.command_type)
on (mysql.general_log.command_type = join_test.command_type)
drop table join_test;
drop table join_test;
...
@@ -59,10 +59,10 @@ create table bug16905 (s char(15) character set utf8 default 'пусто');
...
@@ -59,10 +59,10 @@ create table bug16905 (s char(15) character set utf8 default 'пусто');
insert into bug16905 values ('новое');
insert into bug16905 values ('новое');
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 []
THREAD_ID 1 Query set names utf8
TIMESTAMP
USER_HOST
THREAD_ID 1 Query set names utf8
TIMESTAMP
root[root] @ localhost []
THREAD_ID 1 Query create table bug16905 (s char(15) character set utf8 default 'пусто')
TIMESTAMP
USER_HOST
THREAD_ID 1 Query create table bug16905 (s char(15) character set utf8 default 'пусто')
TIMESTAMP
root[root] @ localhost []
THREAD_ID 1 Query insert into bug16905 values ('новое')
TIMESTAMP
USER_HOST
THREAD_ID 1 Query insert into bug16905 values ('новое')
TIMESTAMP
root[root] @ localhost []
THREAD_ID 1 Query select * from mysql.general_log
TIMESTAMP
USER_HOST
THREAD_ID 1 Query select * from mysql.general_log
drop table bug16905;
drop table bug16905;
truncate table mysql.slow_log;
truncate table mysql.slow_log;
set session long_query_time=1;
set session long_query_time=1;
...
@@ -71,4 +71,4 @@ sleep(2)
...
@@ -71,4 +71,4 @@ 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)
mysql-test/t/log_tables.test
View file @
d2132bc0
...
@@ -16,10 +16,10 @@ use mysql;
...
@@ -16,10 +16,10 @@ use mysql;
#
#
truncate
table
general_log
;
truncate
table
general_log
;
--
replace_column
1
TIMESTAMP
3
THREAD_ID
--
replace_column
1
TIMESTAMP
2
USER_HOST
3
THREAD_ID
select
*
from
general_log
;
select
*
from
general_log
;
truncate
table
slow_log
;
truncate
table
slow_log
;
--
replace_column
1
TIMESTAMP
--
replace_column
1
TIMESTAMP
2
USER_HOST
select
*
from
slow_log
;
select
*
from
slow_log
;
#
#
...
@@ -31,7 +31,7 @@ select * from slow_log;
...
@@ -31,7 +31,7 @@ select * from slow_log;
#
#
truncate
table
general_log
;
truncate
table
general_log
;
--
replace_column
1
TIMESTAMP
3
THREAD_ID
--
replace_column
1
TIMESTAMP
2
USER_HOST
3
THREAD_ID
select
*
from
general_log
where
argument
like
'%general_log%'
;
select
*
from
general_log
where
argument
like
'%general_log%'
;
...
@@ -47,6 +47,7 @@ insert into join_test values ("User performed a usual SQL query", "Query");
...
@@ -47,6 +47,7 @@ insert into join_test values ("User performed a usual SQL query", "Query");
insert
into
join_test
values
(
"New DB connection was registered"
,
"Connect"
);
insert
into
join_test
values
(
"New DB connection was registered"
,
"Connect"
);
insert
into
join_test
values
(
"Get the table info"
,
"Field List"
);
insert
into
join_test
values
(
"Get the table info"
,
"Field List"
);
--
replace_column
2
USER_HOST
select
verbose_comment
,
user_host
,
argument
select
verbose_comment
,
user_host
,
argument
from
mysql
.
general_log
join
join_test
from
mysql
.
general_log
join
join_test
on
(
mysql
.
general_log
.
command_type
=
join_test
.
command_type
);
on
(
mysql
.
general_log
.
command_type
=
join_test
.
command_type
);
...
@@ -156,7 +157,7 @@ truncate table mysql.general_log;
...
@@ -156,7 +157,7 @@ truncate table mysql.general_log;
set
names
utf8
;
set
names
utf8
;
create
table
bug16905
(
s
char
(
15
)
character
set
utf8
default
'пусто'
);
create
table
bug16905
(
s
char
(
15
)
character
set
utf8
default
'пусто'
);
insert
into
bug16905
values
(
'новое'
);
insert
into
bug16905
values
(
'новое'
);
--
replace_column
1
TIMESTAMP
3
THREAD_ID
--
replace_column
1
TIMESTAMP
2
USER_HOST
3
THREAD_ID
select
*
from
mysql
.
general_log
;
select
*
from
mysql
.
general_log
;
drop
table
bug16905
;
drop
table
bug16905
;
...
@@ -167,7 +168,7 @@ drop table bug16905;
...
@@ -167,7 +168,7 @@ drop table bug16905;
truncate
table
mysql
.
slow_log
;
truncate
table
mysql
.
slow_log
;
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
;
# kill all connections
# kill all connections
...
...
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