Error
Error Code:
1842
MariaDB Error 1842: GTID_PURGED Value Mismatch
Description
Error 1842 indicates that the `@@GLOBAL.GTID_PURGED` system variable has been detected to change from one value to another. This usually signifies an inconsistency in the server's Global Transaction ID (GTID) state, often occurring during replication setup, failover, or after recovery operations.
Error Message
@@GLOBAL.GTID_PURGED was changed from '%s' to '%s'.
Known Causes
3 known causesManual GTID_PURGED Modification
The `@@GLOBAL.GTID_PURGED` variable was manually altered outside of standard replication processes, leading to an unexpected state.
Incorrect Replication State
The GTID state became inconsistent during initial replication setup, a primary server failover, or when promoting a replica.
Inconsistent Server Recovery
Following a server crash or recovery operation, the `GTID_PURGED` value was not correctly restored or aligned with the actual GTID set in the binary logs.
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