1199
MySQLERRORNotableReplicationHIGH confidence
Operation requires a running slave
Production Risk
Low — replication is paused; verify and restart.
What this means
ER_SLAVE_NOT_RUNNING (1199, SQLSTATE HY000) is returned when a command requires active replication threads but the slave is not running.
Why it happens
- 1Attempting replication-dependent operations while slave threads are stopped
- 2Slave stopped due to error and not restarted
How to reproduce
trigger — this will error
trigger — this will error
STOP SLAVE; -- Attempt operation that needs running slave START SLAVE UNTIL MASTER_LOG_FILE='...';
expected output
ERROR 1199 (HY000): This operation requires a running slave; configure slave and do START SLAVE
Fix
Start the slave threads
Start the slave threads
START SLAVE; SHOW SLAVE STATUSG
Why this works
Ensure replication is configured and running before executing replication-dependent commands.
Version notes
Sources
Official documentation ↗
MySQL 8.0 — 1199 ER_SLAVE_NOT_RUNNING
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev