include/master-slave.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. [connection master] CREATE SCHEMA IF NOT EXISTS mysqlslap; USE mysqlslap; select @@global.binlog_format; @@global.binlog_format ROW CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)); FLUSH TABLE t1; SELECT COUNT(*) FROM t1; COUNT(*) 5000 include/sync_slave_sql_with_master.inc use mysqlslap; SELECT COUNT(*) FROM t1; COUNT(*) 5000 truncate table t1; insert delayed into t1 values(10, "my name"); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead flush table t1; insert delayed into t1 values(10, "is Bond"), (20, "James Bond"); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead flush table t1; select * from t1; id name 10 my name 20 James Bond include/sync_slave_sql_with_master.inc select * from t1; id name 10 my name 20 James Bond delete from t1 where id!=10; insert delayed into t1 values(20, "is Bond"), (10, "James Bond"); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead flush table t1; select * from t1; id name 10 my name 20 is Bond include/sync_slave_sql_with_master.inc select * from t1; id name 10 my name 20 is Bond USE test; DROP SCHEMA mysqlslap; include/sync_slave_sql_with_master.inc use test; CREATE TABLE t1(a int, UNIQUE(a)); INSERT DELAYED IGNORE INTO t1 VALUES(1); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead INSERT DELAYED IGNORE INTO t1 VALUES(1); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead flush table t1; select * from t1; a 1 include/sync_slave_sql_with_master.inc On slave select * from t1; a 1 drop table t1; include/sync_slave_sql_with_master.inc End of 5.0 tests include/rpl_end.inc