mysql interview question 13: What is asynchronous replication in MySQL? The underlying implementation?

Insert image description here

This article focuses on interviews. In interviews, you only need to answer the key points. You do not need to have a very in-depth answer to the framework. If you want to cope with the interview, it is enough. Grasp the key points.

Interviewer: Tell me what is asynchronous replication in MySQL? The underlying implementation?

Asynchronous Replication in MySQL is a replication mode. After the master server writes data to the binary log, it can return a successful confirmation of the write operation to the client without waiting for confirmation from the slave server. In this way, there is a certain delay in data replication between the master server and the slave server, which may lead to data inconsistency.

The following are the specific implementation steps and related commands of asynchronous replication:

  1. The master server writes to the binary log:

    The master server writes data to the binary log with the following command:

    SET GLOBAL binlog_format = ROW;
    

    Or set it in the configuration file:

    binlog_format = ROW
    
  2. Receive data from server:

    <

Guess you like

Origin blog.csdn.net/qq_27471405/article/details/133563699