[Copy] master-slave principle MySQL master-slave replication

 

 

 

1. There are several threads: a primary thread library, from the library two threads

2. The main library generates a log dump thread, and the thread interaction from the library IO

3.IO main thread requests library binlog, the log is written to the repeater relay log

4.SQL thread reads the relay log, and then resolve to write from the library

Guess you like

Origin www.cnblogs.com/july-sunny/p/12624177.html