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 FUNCTION test.f1; 7DROP TABLE IF EXISTS test.t1; 8create table test.t1 (a int, PRIMARY KEY(a)); 9create function test.f1(i int) returns int 10begin 11insert into test.t1 values(i); 12return 0; 13end// 14select test.f1(1); 15test.f1(1) 160 17select test.f1(2); 18test.f1(2) 190 20select * from test.t1; 21a 221 232 24include/sync_slave_sql_with_master.inc 25select * from test.t1; 26a 271 282 29DROP FUNCTION test.f1; 30DROP TABLE test.t1; 31include/sync_slave_sql_with_master.inc 32include/rpl_end.inc 33