MySQL personal theory of master-slave synchronization

Source: Internet
Author: User

Initiating a request from the database to the primary database

Primary database validation request, if authentication is passed, turn on I/O thread

Sending bits files from a database to the primary database

The primary database matches the value of the bits move file that originated from the database and matches the value of its own bits move file.

If the value of the binary file is smaller than the primary database

Notifications to update synchronized data from the database

After the data has been updated from the database, go to sleep mode

To change the database data to the primary database, turn on I/O thread, send the binary log to the database

After the log is received from the database, enter the operating mode, open the SQL thread, and update the data to the primary database

After the data is updated, go to sleep mode


MySQL personal theory of master-slave synchronization

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.