| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection master; |
| 4 |
create table t1 (n int not null primary key); |
| 5 |
insert into t1 values (1); |
| 6 |
create table t2 (n int); |
| 7 |
insert into t2 values (1); |
| 8 |
insert ignore into t1 select * from t2; |
| 9 |
Warnings: |
| 10 |
Warning 1062 Duplicate entry '1' for key 'PRIMARY' |
| 11 |
insert into t1 values (2); |
| 12 |
connection slave; |
| 13 |
connection slave; |
| 14 |
select * from t1; |
| 15 |
n |
| 16 |
1 |
| 17 |
2 |
| 18 |
connection master; |
| 19 |
drop table t1,t2; |
| 20 |
connection slave; |
| 21 |
include/rpl_end.inc |