The following sections describe how to set up replicas. Before you proceed, ensure that you have:
Configured the source with the necessary configuration properties. See Section 2.2.1, “Setting the Replication Source Configuration”.
Obtained the source status information, or a copy of the source's binary log index file made during a shutdown for the data snapshot. See Section 2.2.4, “Obtaining the Replication Source Binary Log Coordinates”.
On the source, released the read lock:
mysql> UNLOCK TABLES;
On the replica, edited the MySQL configuration. See Section 2.2.2, “Setting the Replica Configuration”.
The next steps depend on whether you have existing data to import to the replica 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 22.214.171.124, “Setting Up Replication with New Source and Replicas”.
If you have a snapshot of a database to import, see Section 126.96.36.199, “Setting Up Replication with Existing Data”.