Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.37 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.37 KB

mysql-replication-starter

An interesting attempt to learn mysql repliction and proxy.

Overview

  1. Create slave user in master, used to visit master node in salve. You need grant replication slave privileges.

  2. Make sure that all databases needed to do replication is same in master and slaves;

  3. Set mysql config. The key fields are bind-address, server-id, log_bin, binlog_do_db, and relay-log(only in slaves) etc.

  4. Run start commands. CHANGE MASTER ... and START SLAVE.

References