MySQL master-Slave synchronization Service Principle

Source: Internet
Author: User
Tags log log
  1. Master-Slave synchronization is an asynchronous replication process. The Bin-log log feature is turned on on master.
    Master Open IO thread slove open IO thread SQL thread

  2. Execute slave from server start by authorizing user to connect on master
    Request Master to send Bin-log log content

  3. !!!
    Master accepts slave IO thread request and returns to slave IO thread


4. After slave receives the information, the received log content is added to the slave end of the
Relay-log the end of the file and bin-log the log file name Master-info

5. Slave's SQL thread detects that a new content has been added to the relay-log and immediately resolves the execution


This article from the "12134803" blog, reproduced please contact the author!

MySQL master-Slave synchronization Service Principle

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.