My Oracle Support Banner

How to Avoid Replicating a Statement to the Replica (Doc ID 1335909.1)

Last updated on OCTOBER 14, 2021

Applies to:

MySQL Server - Version 5.1 and later
Information in this document applies to any platform.

Goal

Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see https://dev.mysql.com/doc/mysqld-version-reference/en/ for a complete list of those changes, and in which minor versions it happened.

Learn how to prevent a query executed on the source to replicate to the replica.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Use Replication Filters
 Setting the sql_log_bin Variable
 Use a LOCAL Variant of the Statement
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.