CertGrid CertGrid
Hands-on Lab·MySQL

MySQL Replication Startup

Point the replica at the source, start it, and read the five fields of `SHOW REPLICA STATUS` that actually matter. Then prove it works by writing a row on one host and finding it on the other.

Replication Guide 28 of 45 Intermediate

Written against the versions above. `CHANGE REPLICATION SOURCE TO` and `START REPLICA` replaced `CHANGE MASTER TO` and `START SLAVE` in 8.0.22. The old forms still work but are deprecated.

The 2 hosts these commands ran on: db-a01, db-b01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB
db-b01192.168.0.82Ubuntu 26.04 LTSStandby / Replica / Replica Set Member 22 Core4 GB50 GB

Before you start

  1. Point the replica at its source and start it

  2. Read the fields that matter

  3. Prove it by writing on one host and reading on the other

Official sources