Concept Flow - Replication basics
Master writes data
Binary log records changes
Slave reads binary log
Slave applies changes
Slave data matches Master
Data changes on the master are recorded in a binary log, which the slave reads and applies to keep data synchronized.