Diagnostic step 1
Record current GTID_EXECUTED and GTID_PURGED on both servers. Do not alter GTID sets yet—export them for reference.
Generated Oct 3, 2026, 12:35:03 AM
Record current GTID_EXECUTED and GTID_PURGED on both servers. Do not alter GTID sets yet—export them for reference.
On the replica, move existing relay logs to a safe backup directory (stop replication first), preserving them for forensic analysis. This is reversible by moving them back.
Ensure replica my.cnf binlog_checksum matches primary (set to CRC32) and restart mysqld if necessary—document change and restart impact on local writes.
Attempt to resume replication by issuing CHANGE MASTER TO MASTER_AUTO_POSITION = 1 and START SLAVE after clearing relay logs; monitor error output. If errors persist, perform a fresh logical or physical snapshot (mysqldump --single-transaction with GTIDs or xtrabackup) and reinitialize replica from a consistent snapshot.
If disk errors suspected, run filesystem checks in read-only safe mode and inspect SMART on replica disk. Escalate to DBA team to coordinate full re-sync during a maintenance window if a full rebase is required.