My Oracle Support Banner

Synchronize Only Specific Tables Over MySQL Replication (Doc ID 1476509.1)

Last updated on APRIL 19, 2019

Applies to:

MySQL Server - Version 5.0 to 5.5 [Release 5.0 to 5.5]
Information in this document applies to any platform.

Goal

Please assume that tables t1 and t2 on db1 are out of sync between the master and the slave, and you are sure that all other tables are okay. Let's fix inconsistency between the master and the slave.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Step 1) Stop the slave
 Step 2) Backup the tables on the master
 Step 3) Forward the slave to the same position as the dump
 Step 4) Wait until the slave reaches to the specified binlog position
 Step 5) Restore the dump
 Step 6) Start the slave
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.