Error
Error Code:
4065
MySQL Error 4065: GTID_ONLY Replication Channel Requirements
Description
This error occurs when attempting to enable `GTID_ONLY` for a MySQL replication channel without meeting the necessary prerequisites. `GTID_ONLY` ensures that replication uses Global Transaction Identifiers exclusively, requiring specific server and replication source configurations to be active.
Error Message
GTID_ONLY cannot be enabled for replication channel '%s'. You need GTID_MODE = ON, SOURCE_AUTO_POSITION = 1 and REQUIRE_ROW_FORMAT = 1.
Known Causes
3 known causesGTID Mode Not Enabled
The MySQL server's `GTID_MODE` system variable is not set to `ON`, which is a mandatory requirement for `GTID_ONLY` replication.
Source Auto-Position Disabled
The replication channel's `SOURCE_AUTO_POSITION` option is not set to `1`, preventing automatic GTID-based positioning during replication.
Row-Based Replication Not Required
The `REQUIRE_ROW_FORMAT` option for the replication channel is not set to `1`, which is essential for consistent GTID-based replication.
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