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]
include/stop_slave.inc
SET @old_log_output= @@log_output;
SET GLOBAL log_output= 'TABLE';
TRUNCATE mysql.general_log;
include/start_slave.inc
CREATE TABLE t1 (i int NOT NULL PRIMARY KEY);
include/sync_slave_sql_with_master.inc
include/assert.inc [The slave thread does not write the same statement twice to the general log]
DROP TABLE t1;
include/sync_slave_sql_with_master.inc
include/stop_slave.inc
SET GLOBAL log_output= @old_log_output;
TRUNCATE mysql.general_log;
include/start_slave.inc
include/rpl_end.inc
