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

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.

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