MySQL Forums
Forum List  »  Replication

Re: Replicate a DB and a table
Posted by: Peter Brawley
Date: November 08, 2019 09:33AM

I've never done it (because it's much simpler to just replicate the db) but I think you'd use replicate-do-db for the db to be replicated in full, replicate-ignore-db for all other dbs except the one with the tables you wish replicated, and repicate-do-table for those tables, see https://dev.mysql.com/doc/refman/8.0/en/replication-rules-db-options.html

Options: ReplyQuote


Subject
Views
Written By
Posted
476
November 08, 2019 01:50AM
Re: Replicate a DB and a table
237
November 08, 2019 09:33AM


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.