MySQL binlog

Binlog is used by mysql database for master-slave replication or data

At present, the two computer rooms POCA and POCB of the multi-active environment POC that our company is testing use binlog to synchronize database data. When an activity is created, the database of the POCA host room saves the activity information, and the POCB computer room will pass the binlog log file. Synchronously replicate incremental new data,

Using binlog to copy data can avoid the configuration of transactions, etc., and directly copy everything in the database that needs to be copied. At the same time, when the host room is updated, the slave room will also update the data synchronously, so that through master-slave synchronization, the host room writes, and the master room writes. Both the slave room can read it, sharing the pressure of data reading. At the same time, because the data in the two computer room databases are consistent, when there is a problem with the POCA in the main room, it can be directly switched to the POCB in the slave room without affecting the reading of system data.

Now I just understand, I will continue to write when I have time to do the actual operation later.

Reference documentation

http://www.php.cn/mysql-tutorials-361643.html


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324751572&siteId=291194637