| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection master; |
| 4 |
create table t1 (a int not null primary key); |
| 5 |
insert into t1 values (1); |
| 6 |
create table t2 (a int); |
| 7 |
insert into t2 values (1); |
| 8 |
update t1, t2 set t1.a = 0 where t1.a = t2.a; |
| 9 |
connection slave; |
| 10 |
show tables; |
| 11 |
Tables_in_test |
| 12 |
t1 |
| 13 |
select * from t1; |
| 14 |
a |
| 15 |
0 |
| 16 |
drop table t1; |
| 17 |
connection master; |
| 18 |
insert into t1 values (1); |
| 19 |
connection slave; |
| 20 |
call mtr.add_suppression("Slave SQL.*Error executing row event: .Table .test.t1. doesn.t exist., error.* 1146"); |
| 21 |
include/wait_for_slave_sql_error.inc [errno=1146] |
| 22 |
==== Clean up ==== |
| 23 |
include/stop_slave_io.inc |
| 24 |
RESET SLAVE; |
| 25 |
connection master; |
| 26 |
drop table t1, t2; |
| 27 |
include/rpl_end.inc |