Error
Error Code: 4013

MySQL Error 4013: GTID Mode Mismatch for Replication

📦 MySQL
📋

Description

This error signifies that MySQL replication cannot begin because the `ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS` setting is active on a server where the global `GTID_MODE` is not set to `ON`. It indicates a fundamental configuration conflict for GTID-based replication. This typically occurs when a replica server is configured to assign GTIDs to anonymous transactions, but its GTID system is not fully enabled.
💬

Error Message

Replication cannot start%s with ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS = LOCAL|<UUID> as this server uses @@GLOBAL.GTID_MODE <> ON.
🔍

Known Causes

3 known causes
⚠️
GTID Mode Not Enabled
The server attempting to start replication has its `@@GLOBAL.GTID_MODE` system variable set to a value other than `ON`.
⚠️
Anonymous GTID Assignment Mismatch
The `ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS` variable is enabled (set to `LOCAL` or a specific UUID) on a server where `GTID_MODE` is not active.
⚠️
Inconsistent Replication Configuration
There is a mismatch in GTID-related settings between the source and replica servers, preventing a consistent replication environment.
🛠️

Solutions

Coming Soon

Detailed step-by-step solutions for this error are being prepared. In the meantime, try these general troubleshooting tips:

General 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
🔗

Related Errors

5 related errors