1include/master-slave.inc 2[connection master] 3call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.'); 4CREATE TABLE t1 ( 5a int unsigned not null auto_increment primary key, 6b int unsigned 7) ENGINE=MyISAM; 8CREATE TABLE t2 ( 9a int unsigned not null auto_increment primary key, 10b int unsigned 11) ENGINE=MyISAM; 12INSERT INTO t1 VALUES (NULL, 0); 13INSERT INTO t1 SELECT NULL, 0 FROM t1; 14INSERT INTO t2 VALUES (NULL, 0), (NULL,1); 15SELECT * FROM t1 ORDER BY a; 16a b 171 0 182 0 19SELECT * FROM t2 ORDER BY a; 20a b 211 0 222 1 23UPDATE t1, t2 SET t1.b = t2.b WHERE t1.a = t2.a; 24connection slave; 25connection master; 26drop table t1, t2; 27include/rpl_end.inc 28