In this Document
Change from master A replicating to B which replicates to C, to master A replicating to slaves B and C.
Procedure:
Stop replication on slave B:STOP SLAVE;
Examine Master_Log_File and Exec_Master_Log_Pos from BSHOW SLAVE STATUS\G
Make sure that sever C has catched up all the updates from B by issuingSHOW SLAVE STATUS\G
on server C until you see Slave_IO_State = Waiting for master to send eventStop replication on slave C:STOP SLAVE;
Change replication source on server C using the values from step 2:CHANGE MASTER TO master_host='A', master_log_file=X', master_log_pos=Y;
Make sure proper replication user is configured.Start replication on server CSTART SLAVE;
Start replication on server BSTART SLAVE;
mysqld_log-slave-updates may be disabled at any later time, when there is some maintenance window for example, that's not necessary however, though will save a bit of disk space and hardware resources on server B.