1include/master-slave.inc 2Warnings: 3Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. 4Note #### 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. 5[connection master] 6DROP TRIGGER test.t1_bi_t2; 7DROP TABLE IF EXISTS test.t1; 8DROP TABLE IF EXISTS test.t2; 9CREATE TABLE test.t1 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d FLOAT, PRIMARY KEY(n))ENGINE=INNODB; 10CREATE TABLE test.t2 (n MEDIUMINT NOT NULL, f FLOAT, PRIMARY KEY(n))ENGINE=INNODB; 11CREATE TRIGGER test.t1_bi_t2 BEFORE INSERT ON test.t2 FOR EACH ROW INSERT INTO test.t1 VALUES (NULL, 1.234)// 12INSERT INTO test.t2 VALUES (1, 0.0); 13INSERT INTO test.t2 VALUES (1, 0.0); 14Got one of the listed errors 15select * from test.t1; 16n d 171 1.234 18select * from test.t2; 19n f 201 0 21include/sync_slave_sql_with_master.inc 22select * from test.t1; 23n d 241 1.234 25select * from test.t2; 26n f 271 0 28DROP TRIGGER test.t1_bi_t2; 29DROP TABLE test.t1; 30DROP TABLE test.t2; 31include/sync_slave_sql_with_master.inc 32include/rpl_end.inc 33