Error
Error Code:
4014
MySQL Error 4014: GTID Replication Conflict
Description
This error occurs in MySQL replication when attempting to configure a replica with conflicting Global Transaction Identifier (GTID) related options. It specifically indicates an incompatibility between assigning GTIDs to anonymous transactions and using GTID-based auto-positioning. This typically arises during a `CHANGE REPLICATION SOURCE TO` or `CHANGE MASTER TO` statement.
Error Message
The options ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS = LOCAL|<UUID> and SOURCE_AUTO_POSITION = 1 cannot be used together.
Known Causes
3 known causesConflicting Replication Configuration
Attempting to enable both `ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS` and `SOURCE_AUTO_POSITION = 1` in the same replication configuration command.
Misaligned GTID Strategy
Configuring a replica to assign GTIDs to anonymous transactions (implying the source might not be fully GTID-enabled) while simultaneously expecting GTID-based auto-positioning, which requires consistent GTID usage on the source.
Inconsistent Source GTID State
The source server's GTID state is not fully consistent or enabled, leading to the need for `ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS`, but the replica is configured to rely on full GTID auto-positioning.
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