mysql interview question 12: Tell me what is semi-synchronous 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 semi-synchronous replication in MySQL? The underlying implementation?

Semi-Synchronous Replication in MySQL is a replication mode that requires at least one slave server to confirm receipt of the data before returning the write operation to the client after the master server writes the data to the binary log. Confirmed successfully. This provides higher data consistency and availability than traditional asynchronous replication.

The following are the specific implementation steps and related commands of semi-synchronous 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 and confirm data from server:

    Start I/O from the server with the following command

Guess you like

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