MySQL Forums
Forum List  »  Replication

Backup
Posted by: Lee Cheong Seong
Date: December 11, 2017 09:43AM

Hi,

Using MySQL 5.5;

I am taking a consistent mysqldump for replicating the existing master data to the slave.

Please confirm my steps are correct ? I am getting 1% more records in slave db after import.

1)

mysqldump --user=root --password=my_pwd -A --single-transaction --quick --master-data=2 --extended-insert --flush-logs --all-databases --add-drop-database --add-drop-table > /tmp/backup.sql

2) After dump complete, log-in to “mysql” in the same session and run;

mysql> UNLOCK TABLES;

3) mysql --user=root --password=my_pwd < /tmp/backup.sql




Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Backup
961
December 11, 2017 09:43AM
355
January 05, 2018 03:01AM


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.