My Oracle Support Banner

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

Last updated on JULY 22, 2021

Applies to:

MySQL Server - Version 5.0 and later
Information in this document applies to any platform.

Goal

Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see https://dev.mysql.com/doc/mysqld-version-reference/en/ for a complete list of those changes, and in which minor versions it happened.

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

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 Replica
 Step 2) Backup the tables on the Source
 Step 3) Forward the Replica to the same position as the dump
 Step 4) Wait until the Replica reaches to the specified binlog position
 Step 5) Restore the dump
 Step 6) Start the Replica

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