Error
Error Code:
3992
MySQL Error 3992: Cannot Change GTID_MODE with Auto-Failover
Description
This error occurs when you attempt to modify the `@@GLOBAL.GTID_MODE` system variable (specifically, disabling it or changing it to a mode that doesn't require GTID) while Asynchronous Replication Connection Failover (`SOURCE_CONNECTION_AUTO_FAILOVER = 1`) is enabled. MySQL prevents this operation to maintain data consistency and replication integrity, as disabling GTID mode could disrupt the failover mechanism.
Error Message
The @@GLOBAL.GTID_MODE = %s cannot be executed because Asynchronous Replication Connection Failover is enabled i.e. CHANGE REPLICATION SOURCE TO SOURCE_CONNECTION_AUTO_FAILOVER = 1.
Known Causes
3 known causesGTID_MODE Modification Conflict
An attempt was made to change `@@GLOBAL.GTID_MODE` to a value incompatible with an active Asynchronous Replication Connection Failover setup.
Active Replication Auto-Failover
The MySQL server is currently configured with `CHANGE REPLICATION SOURCE TO SOURCE_CONNECTION_AUTO_FAILOVER = 1`, which restricts certain `GTID_MODE` changes.
Misunderstood Replication Prerequisites
The user might be unaware that Asynchronous Replication Connection Failover relies on GTID functionality and restricts changes to `GTID_MODE`.
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