Setting up replication filters

You can control which tables or databases are to be replicated. On the master, you can control which databases to log changes for by using the --binlog-do-db and --binlog-ignore-db options to control binary logging, as mentioned in Chapter 6, Binary Logging. The better way is to control on the slave side. You can execute or ignore statements received from the master by using --replicate-* options or dynamically by creating replication filters.

Get MySQL 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.