MySQL implementation, one master multi-slave + Cascade synchronization + Bidirectional Synchronization

Source: Internet
Author: User

Experiment:

A master more from

3307 Configuration:

[Mysqld]

Log-slave-updates # the middle need to open this .

Log-bin =/data/3307/mysql-bin

expire_logs_days = 7 #binlog How many days are saved find–mtime +7

Prevents writes from the library from being written to ignore synchronous db. Or reclaim permissions from the Vault:

[Mysqld]

Slave-skip-errors = 1032,1062

replicate-ignore-db = MySQL

binlog-ignore-db = MySQL

Binlog-ignore-db = Information_schema

Binlog-ignore-db = Performance_schema

Bidirectional synchronization

3306

[Mysqld]

Log-bin =/data/3306/mysql-bin

Log-slave-updates

3307

[Mysqld]

Log-bin =/data/3308/mysql-bin

Log-slave-updates

MySQL implementation, one master multi-slave + Cascade synchronization + Bidirectional Synchronization

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.