mysql master how to copy from

mysql replication master-slave implementation principle:
. 1, mysql support one-way, asynchronous replication, a mysql master as master data server (Master), one or more data from the server as mysql (slave)

2, the principle is the track of the primary copy of all the binary data server log operations (database insert, update, delete), each receiving master binary update log data is stored in the main server from the server

Implementation steps:
1, master of all the data recorded in the binary log change operation in
2, slave to the master binary log is copied to the relay log (Relay log)
3, Salve relay redo log events, to change to reflect his own data , thereby synchronizing data

Guess you like

Origin blog.51cto.com/13238147/2412184