转自:
mysqldba.blogspot.com,现在blogspot访问不了,翻墙再看
restore the backup of server B to server A
On server-A turn off log-slave-updates (you will see why on the next line)
Add
replicate-same-server-id on server A to my.cnf
CHANGE MASTER TO to the position and file of the binary log that is reported from your tool on server-A.
IF
the binary log did not get corrupted on server-B your cool, else flip
the binary log to the next binary log from server-A on server-B.
Let server-A catch up
Stop server-A
Add log-slave-updates on server-A
remove replicate-same-server-id on server A
Start server-A