The following sections describe how to set up slaves. Before you proceed, ensure that you have:
Configured the MySQL master with the necessary configuration properties. See Section 2.2.1, “Setting the Replication Master Configuration”.
Obtained the master status information, or a copy of the master's binary log index file made during a shutdown for the data snapshot. See Section 2.2.4, “Obtaining the Replication Master Binary Log Coordinates”.
On the master, released the read lock:
mysql> UNLOCK TABLES;
On the slave, edited the MySQL configuration. See Section 2.2.2, “Setting the Replication Slave Configuration”.
The next steps depend on whether you have existing data to import to the slave or not. See Section 2.2.5, “Choosing a Method for Data Snapshots” for more information. Choose one of the following:
If you do not have a snapshot of a database to import, see Section 184.108.40.206, “Setting Up Replication with New Master and Slaves”.
If you have a snapshot of a database to import, see Section 220.127.116.11, “Setting Up Replication with Existing Data”.