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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d172cc9a
Commit
d172cc9a
authored
Oct 24, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed syntax from SHOW MASTER LOGS to SHOW BINARY LOGS
parent
458ced9f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
13 deletions
+27
-13
mysql-test/r/rpl000018.result
mysql-test/r/rpl000018.result
+1
-1
mysql-test/r/rpl_log.result
mysql-test/r/rpl_log.result
+2
-2
mysql-test/r/rpl_rotate_logs.result
mysql-test/r/rpl_rotate_logs.result
+3
-3
mysql-test/t/rpl000018.test
mysql-test/t/rpl000018.test
+1
-1
mysql-test/t/rpl_log.test
mysql-test/t/rpl_log.test
+2
-2
mysql-test/t/rpl_rotate_logs.test
mysql-test/t/rpl_rotate_logs.test
+3
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+15
-1
No files found.
mysql-test/r/rpl000018.result
View file @
d172cc9a
reset slave;
start slave;
show
master
logs;
show
binary
logs;
Log_name
master-bin.001
master-bin.002
...
...
mysql-test/r/rpl_log.result
View file @
d172cc9a
...
...
@@ -59,12 +59,12 @@ Log_name Pos Event_type Server_id Orig_log_pos Info
master-bin.002 4 Query 1 4 use `test`; create table t1 (n int)
master-bin.002 62 Query 1 62 use `test`; insert into t1 values (1)
master-bin.002 122 Query 1 122 use `test`; drop table t1
show
master
logs;
show
binary
logs;
Log_name
master-bin.001
master-bin.002
start slave;
show
master
logs;
show
binary
logs;
Log_name
slave-bin.001
slave-bin.002
...
...
mysql-test/r/rpl_rotate_logs.result
View file @
d172cc9a
...
...
@@ -25,7 +25,7 @@ drop table if exists t2;
create table t2(m int not null auto_increment primary key);
insert into t2 values (34),(67),(123);
flush logs;
show
master
logs;
show
binary
logs;
Log_name
master-bin.001
master-bin.002
...
...
@@ -41,7 +41,7 @@ insert into t2 values(NULL);
set global sql_slave_skip_counter=1;
start slave;
purge master logs to 'master-bin.003';
show
master
logs;
show
binary
logs;
Log_name
master-bin.003
insert into t2 values (65);
...
...
@@ -60,7 +60,7 @@ insert into temp_table values ("testing temporary tables part 2");
drop table if exists t3;
create table t3 (n int);
create table t4 select * from temp_table;
show
master
logs;
show
binary
logs;
Log_name
master-bin.003
master-bin.004
...
...
mysql-test/t/rpl000018.test
View file @
d172cc9a
...
...
@@ -12,7 +12,7 @@ connection slave;
reset
slave
;
start
slave
;
connection
master
;
show
master
logs
;
show
binary
logs
;
drop
table
if
exists
t1
;
create
table
t1
(
n
int
);
insert
into
t1
values
(
3351
);
...
...
mysql-test/t/rpl_log.test
View file @
d172cc9a
...
...
@@ -40,12 +40,12 @@ drop table t1;
--
replace_result
$VERSION
VERSION
show
binlog
events
;
show
binlog
events
in
'master-bin.002'
;
show
master
logs
;
show
binary
logs
;
save_master_pos
;
connection
slave
;
start
slave
;
sync_with_master
;
show
master
logs
;
show
binary
logs
;
--
replace_result
3306
MASTER_PORT
9306
MASTER_PORT
3334
MASTER_PORT
3336
MASTER_PORT
$VERSION
VERSION
show
binlog
events
in
'slave-bin.001'
from
4
;
--
replace_result
3306
MASTER_PORT
9306
MASTER_PORT
3334
MASTER_PORT
3336
MASTER_PORT
$VERSION
VERSION
...
...
mysql-test/t/rpl_rotate_logs.test
View file @
d172cc9a
...
...
@@ -50,7 +50,7 @@ drop table if exists t2;
create
table
t2
(
m
int
not
null
auto_increment
primary
key
);
insert
into
t2
values
(
34
),(
67
),(
123
);
flush
logs
;
show
master
logs
;
show
binary
logs
;
create
table
t3
select
*
from
temp_table
;
sync_slave_with_master
;
...
...
@@ -87,7 +87,7 @@ connection master;
sync_slave_with_master
;
connection
master
;
purge
master
logs
to
'master-bin.003'
;
show
master
logs
;
show
binary
logs
;
insert
into
t2
values
(
65
);
sync_slave_with_master
;
--
replace_result
3306
MASTER_PORT
9306
MASTER_PORT
3334
MASTER_PORT
3336
MASTER_PORT
...
...
@@ -113,7 +113,7 @@ while ($1)
}
enable_query_log
;
create
table
t4
select
*
from
temp_table
;
show
master
logs
;
show
binary
logs
;
show
master
status
;
save_master_pos
;
connection
slave
;
...
...
sql/sql_yacc.yy
View file @
d172cc9a
...
...
@@ -1426,6 +1426,20 @@ slave:
lex->sql_command = SQLCOM_SLAVE_STOP;
lex->type = 0;
};
|
SLAVE START_SYM slave_thread_opts
{
LEX *lex=Lex;
lex->sql_command = SQLCOM_SLAVE_START;
lex->type = 0;
}
|
SLAVE STOP_SYM slave_thread_opts
{
LEX *lex=Lex;
lex->sql_command = SQLCOM_SLAVE_STOP;
lex->type = 0;
};
slave_thread_opts:
slave_thread_opt
...
...
@@ -2961,7 +2975,7 @@ show_param:
Lex->mi.pos = $12;
Lex->mi.server_id = $16;
}
|
MASTER_SYM
LOGS_SYM
|
BINARY
LOGS_SYM
{
Lex->sql_command = SQLCOM_SHOW_BINLOGS;
}
...
...
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