Mysql DBA Advanced Operations Learning Note-mysql Master-slave replication specifies different library table parameter descriptions

Source: Internet
Author: User
Tags dba mysql manual

1. Synchronizing a small number of libraries

Binlog-do-db=db_px

REPLICATE-DO-DB=DB_PX---If you need to update across databases and you do not want to replicate these and new, you should use this option

REPLICATE-DO-TABLE=DB_PX----Allow cross-database updates

REPLICATE-WILD-DO-TABLE=DB_PX---for cross-database updates

2.ignore: Exclude

Binlog-ignore-db=mysql

replicate-ignore-db=mysql-This option should be used if you want to update across databases and do not want to replicate these updates

replicate-ignore-table=mysql-This option can be updated across databases

replicate-wild-ignore-table=mysql-This option can be updated across databases

Hint: multi-Library, multi-table, multi-line write

Reference MySQL Manual

The fifth chapter: database management

Sixth: Replication in MySQL

The replication can also be used to reduce the amount of binlog data in order to achieve increased efficiency.

Master side:

--binlog-do-db Binary Logging Database (multiple databases, delimited)

--BINLOG-IGNORE-DB binary Log ignored database (multiple databases, delimited)

Slave End:

--REPLICATION-DO-DB setting the database to be replicated (multiple databases, delimited)

--REPLICATION-IGNORE-DB setting ignores replicated databases (multiple databases, delimited)

--replication-do-table setting the table to be copied (multiple tables, delimited)

--replication-ignore-table setting ignores replicated tables (multiple tables, delimited)

--replication-wild-do-table is the same as the replication-do-table function, but it can be added with wildcard characters.

--replication-wild-ignore-table is the same as the replication-ignore-table function, but it can be added with wildcard characters.

Mysql DBA Advanced Operations Learning Note-mysql Master-slave replication specifies different library table parameter descriptions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.