2009-09-29 00:04:20 +01:00
|
|
|
-- connection master
|
|
|
|
|
|
|
|
CREATE TABLE t1 (a INT);
|
|
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
INSERT INTO t1 VALUES (2);
|
|
|
|
INSERT INTO t1 VALUES (3);
|
|
|
|
INSERT INTO t1 VALUES (4);
|
|
|
|
INSERT INTO t1 VALUES (5);
|
|
|
|
INSERT INTO t1 VALUES (6);
|
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW BINLOG EVENTS IN ... *********
|
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW BINLOG EVENTS *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW BINLOG EVENTS ... LIMIT rows *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_limit= 3;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW BINLOG EVENTS ... LIMIT offset,rows *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_limit= 1,4;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
# clear show_binlog_event/show_relaylog_events parameters
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_limit= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
|
|
|
|
-- sync_slave_with_master
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW BINLOG EVENTS IN ... *********
|
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW BINLOG EVENTS *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW BINLOG EVENTS ... LIMIT rows *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_limit= 3;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW BINLOG EVENTS ... LIMIT offset,rows *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_limit= 1,4;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
# clear show_binlog_event/show_relaylog_events parameters
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_limit= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= query_get_value(SHOW SLAVE STATUS, Relay_Log_File, 1);
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_relaylog_events.inc
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_relaylog_events.inc
|
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT rows *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= query_get_value(SHOW SLAVE STATUS, Relay_Log_File, 1);
|
|
|
|
let $binlog_limit= 3;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_relaylog_events.inc
|
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT offset,rows *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_limit= 1,3;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_relaylog_events.inc
|
|
|
|
|
|
|
|
FLUSH LOGS;
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= query_get_value(SHOW SLAVE STATUS, Relay_Log_File, 1);
|
2009-09-29 00:04:20 +01:00
|
|
|
|
|
|
|
-- connection master
|
|
|
|
FLUSH LOGS;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
|
|
|
# clear show_binlog_event/show_relaylog_events parameters
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
|
|
|
let $binlog_limit= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW BINLOG EVENTS IN ... *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1);
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [MASTER] ********* SOW BINLOG EVENTS *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- sync_slave_with_master
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW BINLOG EVENTS IN ... *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1);
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW BINLOG EVENTS *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_binlog_events.inc
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
|
|
|
|
-- source include/show_relaylog_events.inc
|
|
|
|
|
|
|
|
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS *********
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
2009-09-29 00:04:20 +01:00
|
|
|
-- source include/show_relaylog_events.inc
|
|
|
|
|
|
|
|
# clear show_binlog_event/show_relaylog_events parameters
|
2010-05-26 22:34:25 +08:00
|
|
|
let $binlog_file= ;
|
|
|
|
let $binlog_limit= ;
|