How Servers Evaluate Replication Filtering Rules
1482
2. Are there any
--replicate-ignore-db
[1457]
options?
• Yes.
Do any of them match the database?
• Yes.
Ignore the statement and exit.
• No.
Continue to step 3.
• No.
Continue to step 3.
3. Proceed to checking the table-level replication options, if there are any. For a description of how
these options are checked, see
Section 16.2.3.2, “Evaluation of Table-Level Replication Options”
.
Important
A statement that is still permitted at this stage is not yet actually executed.
The statement is not executed until all table-level options (if any) have also
been checked, and the outcome of that process permits execution of the
statement.
For binary logging, the steps involved are listed here:
1. Are there any
--binlog-do-db
[1469]
or
--binlog-ignore-db
[1470]
options?
• Yes.
Continue to step 2.
• No.
Log the statement and exit.
2. Is there a default database (has any database been selected by
USE
)?
• Yes.
Continue to step 3.
• No.
Ignore the statement and exit.
3. There is a default database. Are there any
--binlog-do-db
[1469]
options?
• Yes.
Do any of them match the database?
• Yes.
Log the statement and exit.
• No.
Ignore the statement and exit.
• No.
Continue to step 4.
4. Do any of the
--binlog-ignore-db
[1470]
options match the database?
• Yes.
Ignore the statement and exit.
• No.
Log the statement and exit.
Important
An exception is made in the rules just given for the
CREATE DATABASE
,
ALTER DATABASE
, and
DROP DATABASE
statements. In those cases, the
database being created, altered, or dropped replaces the default database
when determining whether to log or to ignore updates.
--binlog-do-db
[1469]
can sometimes mean “ignore other databases”. For example, a server
running with only
--binlog-do-db=sales
[1469]
does not write to the binary log statements for
which the default database differs from
sales
.
Relay log files have the same format as binary log files and can be read using
mysqlbinlog
.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...