<p>Raised when CHANGE MASTER TO MASTER_AUTO_POSITION = 1 is executed while @@GLOBAL.GTID_MODE is OFF.</p>
<p>MySQL Error 1777 ER_AUTO_POSITION_REQUIRES_GTID_MODE_NOT_OFF happens when you request CHANGE MASTER TO MASTER_AUTO_POSITION = 1 but GTID mode is OFF. Turn GTID mode ON or set MASTER_AUTO_POSITION = 0 to fix the replication setup.</p>
CHANGE MASTER TO MASTER_AUTO_POSITION = 1 cannot be
MySQL throws error 1777 when the statement CHANGE MASTER TO MASTER_AUTO_POSITION = 1 is issued while the global variable gtid_mode equals OFF. The server blocks the command because GTID-based auto positioning relies on GTID events, which are absent when gtid_mode is disabled.
The error message was introduced in MySQL 5.7.6 and still appears in MySQL 8.0. It halts replication configuration, leaving the replica in a stopped state until the conflict is resolved.
The error surfaces during initial replica provisioning, after migrating from file/position replication to GTID, or whenever a DBA toggles auto positioning on an existing channel without first activating GTID mode on the source.
It can also occur inside automation scripts that blindly apply CHANGE MASTER commands regardless of server settings, causing hidden replication drift.
A replica that cannot start falls behind the primary, creating exposure to data loss during failover. Long-running outages may also break read scaling and backup strategies that depend on replicas.
Production environments with strict RPO/RTO objectives should address error 1777 immediately to restore redundancy and consistency.
A mismatch exists between the requested replication mode and the server configuration. GTID mode is OFF, yet auto positioning requires GTID events. MySQL aborts to protect data integrity.
Secondary causes include mis-ordered configuration steps, forgotten server restarts after changing gtid_mode, and conflicting replication templates used by automation tools.
There are two safe resolutions. Either enable GTID mode on all servers and keep MASTER_AUTO_POSITION = 1, or leave GTID mode OFF but remove MASTER_AUTO_POSITION from CHANGE MASTER and switch back to file/position replication.
Both methods require full agreement across source and replicas before START SLAVE or START REPLICA will succeed.
If you are migrating to GTID replication, first enable binary logging and unique server_id, then toggle gtid_mode through OFF_PERMISSIVE to ON. Afterwards re-run CHANGE MASTER with MASTER_AUTO_POSITION = 1.
For legacy topologies that cannot yet adopt GTIDs, simply repeat CHANGE MASTER but omit the MASTER_AUTO_POSITION clause and specify MASTER_LOG_FILE and MASTER_LOG_POS instead.
Version-control your replica configuration scripts and include a guard clause that verifies SELECT @@GLOBAL.gtid_mode <> 'OFF' before setting MASTER_AUTO_POSITION.
Tools like Galaxy alert you in the editor when a CHANGE MASTER command conflicts with current server variables, preventing costly runtime failures.
Error 1236 (ER_MASTER_FATAL_ERROR_READING_BINLOG) flags missing log files during position-based replication. Enabling GTIDs and auto positioning often resolves it.
Error 1872 (ER_GTID_MODE_NO_AUTO_POSITION) appears when gtid_mode is OFF yet the replica was started with --slave-auto-position. The fixes mirror error 1777.
The primary server has gtid_mode=OFF, so it never writes GTID events. Any replica requesting MASTER_AUTO_POSITION = 1 immediately fails.
A cloned replica may inherit my.cnf with gtid_mode=OFF, but automation scripts still issue MASTER_AUTO_POSITION. The mismatch triggers error 1777 on START REPLICA.
DBAs sometimes flip MASTER_AUTO_POSITION before completing the multi-step GTID enablement sequence (log_bin, enforce_gtid_consistency, gtid_mode). The premature command causes this error.
Changing gtid_mode requires a server restart in some versions. Forgetting the restart leaves gtid_mode OFF in memory, even if the config file was updated.
Occurs when --slave-auto-position is set on startup while gtid_mode is OFF. Fix by enabling GTID or removing the flag.
Indicates the replica cannot read the master's binary log. GTID auto positioning or re-syncing the replica resolves the issue.
In Group Replication, this error signals inconsistent GTID sets between members. Align GTID mode and replicate missing transactions.
Switching from OFF to ON can be done online by moving through the permissive modes, but a restart is still recommended for permanence.
No. GTID mode must be ON on all servers that participate in the replication topology, including the primary.
The overhead is negligible for most workloads, yet it dramatically simplifies failover and replica provisioning.
Galaxy's linting engine highlights GTID mismatches in your CHANGE MASTER statements and suggests the correct sequence before queries run.