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] 6include/stop_slave.inc 7CREATE TABLE test(id INTEGER NOT NULL PRIMARY KEY); 8INSERT INTO test VALUES (1), (2), (3); 9include/rpl_restart_server.inc [server_number=2 parameters: --relay-log-info-repository=TABLE --skip-slave-start] 10include/rpl_restart_server.inc [server_number=2 parameters: --relay-log-info-repository=FILE --skip-slave-start] 11SET @@GLOBAL.relay_log_info_repository= "TABLE"; 12SET @@GLOBAL.relay_log_info_repository= "FILE"; 13SET @@GLOBAL.relay_log_info_repository= "FILE"; 14SET @@GLOBAL.master_info_repository= "FILE"; 15include/start_slave.inc 16SET @@GLOBAL.relay_log_info_repository= "TABLE"; 17ERROR HY000: This operation cannot be performed with running replication threads; run STOP SLAVE FOR CHANNEL '' first 18SET @@GLOBAL.master_info_repository= "TABLE"; 19ERROR HY000: This operation cannot be performed with running replication threads; run STOP SLAVE FOR CHANNEL '' first 20include/sync_slave_sql_with_master.inc 21DROP TABLE test; 22include/sync_slave_sql_with_master.inc 23