這是本文件的舊版!
Replication 主要是由Master Server 將寫入的事件(新增,刪除及修改) 記錄在Master Binary Log中,Slave 由(I/O threads) 再讀取Master Binary Log 相關SQL語句 ,送到Slave Relay Log(中繼日誌檔)暫時存放,再由Slave (SQL threads)讀取 Relay Log 來重新執行 SQL相關語句。
基本上以下所列的都是 非同步(asynchronous,異步) replication
*Slave 版本要比Master新 (因為 當新版本Slave 在讀取 舊版本Master binlog時,除了新的特性或與語法外,還能相容於舊版本相關格式或過時的語法)
假定以下LAB環境狀況: Master Mysql:ldap2.Qoop.com 192.168.0.170 () Slave Mysql:ldap3.Qoop.com 192.168.0.171 (只允許 Master 讀寫資料庫資料。不允許外部Client端寫入Slave Mysql,但有條件方式使Client端只讀取 Slave Mysql) 在做Mysql Replication時,必須確定Master 和 Slave 資料庫內容資料要一致。