Menu

1 / 2

MySQL 8.4 replication: the commands that stopped working, and the server_id mistake that cost me an evening

DEV Community: mysql·Henry Hans·3 days ago
#vLdafETE
#devtomysql#devto#dev#replica#replication
Long article (950 words) — no AI summary yet.
Reading 0:00
15s threshold

I set up source/replica replication on Ubuntu Server 26.04 with MySQL 8.4 LTS, using the same steps I'd used for years on 8.0. Almost every step failed. Some failures were obvious syntax errors. One took a long evening to track down.

Here's the list, so you don't have to rediscover it.

The lab

Role Host Address

Source db01 10.0.0.191

Replica db02 10.0.0.192

1. The MASTER/SLAVE statements are gone, not just deprecated

In 8.0 these were deprecated but still worked. In 8.4 they're removed, and the server rejects them with a syntax error. The ones I hit, with the replacements:

Old (8.0) MySQL 8.4

SHOW MASTER STATUS SHOW BINARY LOG STATUS

RESET MASTER RESET BINARY LOGS AND GTIDS

SHOW MASTER LOGS SHOW BINARY LOGS

PURGE MASTER LOGS PURGE BINARY LOGS

CHANGE MASTER TO CHANGE REPLICATION SOURCE TO

START SLAVE / STOP SLAVE START REPLICA / STOP REPLICA

SHOW SLAVE STATUS SHOW REPLICA STATUS

RESET SLAVE RESET REPLICA

The options inside CHANGE REPLICATION SOURCE TO were renamed too: MASTER_HOST becomes…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.