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 a database only

Assume that you want to replicate db1 and db2 only. Use the following statement to create the replication filter.

mysql> CHANGE REPLICATION FILTER REPLICATE_DO_DB = (db1, db2);

Note that you should specify all the databases inside parentheses.

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