Replication and Binary Logging Options and Variables
1458
UPDATE sales.january SET amount=1000;
Note
In the preceding example the statement is replicated because
--
replicate-ignore-db
[1457]
only applies to the default database (set
through the
USE
statement). Because the
sales
database was specified
explicitly in the statement, the statement has not been filtered.
If you need cross-database updates to work, use
--replicate-wild-ignore-table=db_name.
%
[1460]
instead. See
Section 16.2.3, “How Servers Evaluate Replication Filtering Rules”
.
Beginning with MySQL 5.0.84, this option has no effect on
BEGIN
,
COMMIT
, or
ROLLBACK
statements. (Bug #43263)
•
--replicate-do-table=db_name.tbl_name
[1458]
Command-Line Format
--replicate-do-table=name
Option-File Format
replicate-do-table
Permitted Values
Type
string
Tells the slave SQL thread to restrict replication to the specified table. To specify more than one
table, use this option multiple times, once for each table. This works for both cross-database updates
and default database updates, in contrast to
--replicate-do-db
[1457]
. See
Section 16.2.3,
“How Servers Evaluate Replication Filtering Rules”
.
This option affects only statements that apply to tables. It does not affect statements that apply only
to other database objects, such as stored routines. To filter statements operating on stored routines,
use one or more of the
--replicate-*-db
options.
•
--replicate-ignore-table=db_name.tbl_name
[1458]
Command-Line Format
--replicate-ignore-table=name
Option-File Format
replicate-ignore-table
Permitted Values
Type
string
Tells the slave SQL thread not to replicate any statement that updates the specified table, even if any
other tables might be updated by the same statement. To specify more than one table to ignore, use
this option multiple times, once for each table. This works for cross-database updates, in contrast
to
--replicate-ignore-db
[1457]
. See
Section 16.2.3, “How Servers Evaluate Replication
Filtering Rules”
.
This option affects only statements that apply to tables. It does not affect statements that apply only
to other database objects, such as stored routines. To filter statements operating on stored routines,
use one or more of the
--replicate-*-db
options.
•
--replicate-rewrite-db=from_name->to_name
[1458]
Command-Line Format
--replicate-rewrite-db=old_name->new_name
Option-File Format
replicate-rewrite-db
Permitted Values
Type
string
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 ...