Error
Error Code:
3990
MySQL Error 3990: GTID Mode Required
Description
This error indicates an attempt to enable the Asynchronous Replication Connection Failover feature (SOURCE_CONNECTION_AUTO_FAILOVER) without GTID_MODE being globally enabled. MySQL's automatic failover for replication connections relies on Global Transaction Identifiers (GTIDs) to ensure data consistency and proper failover mechanisms.
Error Message
Failed to enable Asynchronous Replication Connection Failover feature. The CHANGE REPLICATION SOURCE TO SOURCE_CONNECTION_AUTO_FAILOVER = 1 can only be set when @@GLOBAL.GTID_MODE = ON.
Known Causes
3 known causesGTID Mode Not Enabled
The primary cause is attempting to configure `SOURCE_CONNECTION_AUTO_FAILOVER = 1` when the `@@GLOBAL.GTID_MODE` variable is not set to `ON`.
Incorrect Replication Configuration
The current replication setup may not have been initialized or configured with GTID mode enabled, which is a mandatory prerequisite for this specific failover feature.
Feature Requirement Oversight
Users might try to enable advanced replication features without fully understanding their underlying dependencies, such as the need for 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