在一个循环复制的环境下恢复备份

0 views
Skip to first unread message

tommy xiao

unread,
May 24, 2009, 10:15:47 AM5/24/09
to Coder...@googlegroups.com
转自: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
Reply all
Reply to author
Forward
0 new messages