O'Reilly logo

MySQL 8 Cookbook by Karthik Appigatla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Replicate specific tables

You can specify the tables you want to be replicated using REPLICATE_DO_TABLE:

mysql> CHANGE REPLICATION FILTER REPLICATE_DO_TABLE = ('db1.table1'); 

Suppose that you want to use regex for tables; you can use the REPLICATE_WILD_DO_TABLE option:

mysql> CHANGE REPLICATION FILTER REPLICATE_WILD_DO_TABLE = ('db1.imp%'); 

You can mention some databases or tables with regex using various IGNORE options.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required