| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection master; |
| 4 |
CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY); |
| 5 |
INSERT INTO t1 VALUES (1),(2),(3),(4); |
| 6 |
DROP TABLE t1; |
| 7 |
CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY); |
| 8 |
INSERT INTO t2 VALUES (1),(2); |
| 9 |
INSERT INTO t2 VALUES (3),(4); |
| 10 |
DROP TABLE t2; |
| 11 |
connection slave; |
| 12 |
include/stop_slave.inc |
| 13 |
include/reset_slave.inc |
| 14 |
CHANGE MASTER TO MASTER_USER='root', MASTER_CONNECT_RETRY=1, MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT; |
| 15 |
connection slave; |
| 16 |
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1; |
| 17 |
include/wait_for_slave_sql_to_stop.inc |
| 18 |
SELECT * FROM t1; |
| 19 |
n |
| 20 |
1 |
| 21 |
2 |
| 22 |
3 |
| 23 |
4 |
| 24 |
include/check_slave_param.inc [Exec_Master_Log_Pos] |
| 25 |
START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=291; |
| 26 |
include/wait_for_slave_sql_to_stop.inc |
| 27 |
SELECT * FROM t1; |
| 28 |
n |
| 29 |
1 |
| 30 |
2 |
| 31 |
3 |
| 32 |
4 |
| 33 |
include/check_slave_param.inc [Exec_Master_Log_Pos] |
| 34 |
START SLAVE; |
| 35 |
include/wait_for_slave_to_start.inc |
| 36 |
connection master; |
| 37 |
connection slave; |
| 38 |
include/stop_slave.inc |
| 39 |
START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_create_t2; |
| 40 |
include/wait_for_slave_param.inc [Until_Log_Pos] |
| 41 |
include/wait_for_slave_sql_to_stop.inc |
| 42 |
include/check_slave_param.inc [Exec_Master_Log_Pos] |
| 43 |
START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=MASTER_LOG_POS; |
| 44 |
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
| 45 |
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS, RELAY_LOG_POS=RELAY_LOG_POS; |
| 46 |
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
| 47 |
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001'; |
| 48 |
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
| 49 |
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009'; |
| 50 |
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
| 51 |
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=MASTER_LOG_POS; |
| 52 |
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL |
| 53 |
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS; |
| 54 |
include/wait_for_slave_io_to_start.inc |
| 55 |
include/wait_for_slave_sql_to_stop.inc |
| 56 |
include/stop_slave_io.inc |
| 57 |
include/reset_slave.inc |
| 58 |
include/start_slave.inc |
| 59 |
include/rpl_reset.inc |
| 60 |
connection master; |
| 61 |
CREATE TABLE t1 (a INT); |
| 62 |
INSERT INTO t1 VALUES (1); |
| 63 |
connection slave; |
| 64 |
include/stop_slave_sql.inc |
| 65 |
connection master; |
| 66 |
INSERT INTO t1 VALUES (2); |
| 67 |
INSERT INTO t1 VALUES (3); |
| 68 |
include/sync_slave_io_with_master.inc |
| 69 |
start slave until relay_log_file='slave-relay-bin.000002', relay_log_pos=relay_log_pos; |
| 70 |
include/wait_for_slave_sql_to_stop.inc |
| 71 |
include/assert.inc [table t1 should have two rows.] |
| 72 |
include/start_slave.inc |
| 73 |
connection master; |
| 74 |
DROP TABLE t1; |
| 75 |
connection slave; |
| 76 |
include/rpl_end.inc |