MySQL Forums
Forum List  »  InnoDB

Re: Master-Slave with InnoDB
Posted by: Aftab Khan
Date: July 28, 2011 06:32AM

I would say firstly try using mk-table-checksum to see the difference between master and slave databases if the differences are not high then try mk-table-sync utility

http://www.maatkit.org/doc/mk-table-checksum.html
http://www.maatkit.org/doc/mk-table-sync.html

If you find alot of discrepancy then take online backup (it won't block write/read operations) using mysqldump with following switches

mysqldump --single-transaction --master-data=2 -A > all_databases.sql

http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html#option_mysqldump_single-transaction

Since your database is quite large then the db restore would take significantly longer to complete in this case use MySQL Enteripse backup tool that is a very efficient

http://www.mysql.com/trials/



Edited 2 time(s). Last edit at 07/28/2011 10:00AM by Aftab Khan.

Options: ReplyQuote


Subject
Views
Written By
Posted
2558
July 13, 2011 01:43AM
856
July 14, 2011 10:00AM
907
July 15, 2011 12:04AM
726
July 15, 2011 10:13AM
1188
July 18, 2011 01:04AM
719
July 18, 2011 08:59AM
1526
July 19, 2011 02:14AM
756
July 19, 2011 09:04PM
767
July 20, 2011 01:40AM
928
July 20, 2011 09:51AM
736
July 25, 2011 06:36AM
944
July 25, 2011 09:26AM
Re: Master-Slave with InnoDB
831
July 28, 2011 06:32AM
860
S D
August 09, 2011 03:22PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.