Troubleshooting·MySQL
MySQL Replica Write Protection
A fresh replica is not read-only. A write to it succeeds, diverges the data and plants a transaction the source has never heard of - and `super_read_only` is the one-line prevention.
Replication Guide 29 of 45 Intermediate
- OSUbuntu 26.04 LTS (resolute)
- MySQL8.4.10-0ubuntu0.26.04.1
- ReplicationGTID, ROW format, auto-position
- TimeAbout 15 min
- Reviewed27 August 2026
Written against the versions above. `read_only` alone does not stop users with the SUPER privilege - which includes root, and therefore most people connecting to fix something. `super_read_only` is the one that means it.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| db-a01 | 192.168.0.81 | Ubuntu 26.04 LTS | Primary / Source / Replica Set Member 1 | 2 Core | 4 GB | 50 GB |
| db-b01 | 192.168.0.82 | Ubuntu 26.04 LTS | Standby / Replica / Replica Set Member 2 | 2 Core | 4 GB | 50 GB |
Before you start
- A running replica - see the previous guide.
-
Discover that the replica accepts writes
-
See what that write did to the GTID history
-
Close the door
-
Confirm replication still works through it