3251
MySQLERRORNotableReplicationHIGH confidence

Replication filters cannot be deleted

Production Risk

Medium — replication filter misconfiguration may cause data divergence.

How to reproduce
trigger — this will error
trigger — this will error
CHANGE REPLICATION FILTER REPLICATE_DO_DB=();

expected output

ERROR 3251 (HY000): Replication filters set using --replicate-* cannot be deleted.

Fix

Remove from config file

Remove from config file
-- Remove replicate-do-db from my.cnf and restart MySQL.

Why this works

Static filters set at startup can only be removed by editing the config file.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3251 ER_REPLICATION_FILTERS_NOT_DELETABLE

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MySQL errors