Commit d172cc9a authored by unknown's avatar unknown

changed syntax from SHOW MASTER LOGS to SHOW BINARY LOGS

parent 458ced9f
reset slave;
start slave;
show master logs;
show binary logs;
Log_name
master-bin.001
master-bin.002
......
......@@ -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
......
......@@ -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
......
......@@ -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);
......
......@@ -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
......
......@@ -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;
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment