MINI MINI MANI MO
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 TABLE t1 (c1 int);
include/sync_slave_sql_with_master.inc
include/stop_slave_sql.inc
[connection master]
INSERT INTO t1 VALUES (1);
include/sync_slave_io_with_master.inc
include/stop_slave_io.inc
CHANGE MASTER TO MASTER_DELAY=1;
include/start_slave.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/assert.inc [Assert that the $inserted_value is equal to 1]
include/stop_slave.inc
CHANGE MASTER TO MASTER_DELAY=0;
include/start_slave.inc
[connection master]
DROP TABLE t1;
include/rpl_end.inc
OHA YOOOO