Error
Error Code:
1199
MySQL Error 1199: Replication Slave Not Running
Description
This error signifies that an operation, typically within a replication or high-availability setup, requires an active and running MySQL slave instance. It occurs when a master server or an application attempts to perform an action that relies on a slave server, but the slave is either stopped, unconfigured, or has failed to start.
Error Message
This operation requires a running slave; configure slave and do START SLAVE
Known Causes
4 known causesSlave SQL/IO Threads Stopped
The replication threads (SQL_THREAD or IO_THREAD) on the slave server have been manually stopped or ceased due to an internal error.
Slave Server Not Started
The entire MySQL slave instance process is not running, possibly because it was never started or crashed unexpectedly.
Missing or Incorrect Configuration
The slave server's replication configuration (e.g., MASTER_HOST, MASTER_USER, MASTER_LOG_FILE) is incomplete, incorrect, or invalid.
Network Connectivity Issues
The slave server cannot establish or maintain a connection to the master server, preventing the IO_THREAD from starting or continuing.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service