Common SQL Errors

MySQL Error 1784: ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF__UNUSED - Fixing GTID Event Mismatch

Galaxy Team
August 7, 2025

<p>The server found a GTID_log_event in the binary log while global GTID_MODE is OFF, causing replication to halt.</p>

Sign up for the latest in common SQL errors from the Galaxy Team!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

What is MySQL error 1784 ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF__UNUSED?

<p>MySQL Error 1784 ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF__UNUSED appears when the server reads a GTID_log_event but @@GLOBAL.GTID_MODE is OFF. Enable GTID_MODE or purge the GTID events from the binlog to resume replication.</p>

Error Highlights

Typical Error Message

Found a Gtid_log_event when @@GLOBAL.GTID_MODE = OFF.

Error Type

Replication Error

Language

MySQL

Symbol

ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF__UNUSED

Error Code

1784

SQL State

HY000

Explanation

Table of Contents

What is MySQL error 1784 ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF__UNUSED?

Error 1784 occurs when the MySQL server encounters a GTID_log_event in a binary log file while the global variable GTID_MODE is set to OFF. Because GTID events require GTID_MODE = ON, the server stops processing the log to prevent data inconsistency.

The error blocks replication startup, point-in-time recovery, and some logical backup operations. Fixing it quickly is essential to restore replica lag and ensure a consistent recovery path.

When does this error appear?

The error shows up during CHANGE MASTER TO, START SLAVE, mysqlbinlog replay, or server startup after crash recovery. Any operation that reads a binlog containing GTID_log_event while GTID_MODE is OFF will fail with code 1784.

Why is fast resolution important?

Replication stoppage increases fail-over time and may cause data staleness. Backups relying on mysqlbinlog cannot continue. Turning GTID_MODE back on or cleaning the offending log ensures business continuity.

Common Causes

Mixed configuration rollover

An administrator disabled GTID_MODE on the primary but old binlogs still contain GTID events.

Server downgrade

The instance was downgraded to a version that defaults to GTID_MODE = OFF while retaining binlogs from a GTID-enabled period.

Misconfigured clone

A new replica was initialized from a snapshot taken when GTID_MODE was ON, but the replica’s my.cnf forces GTID_MODE = OFF.

PITR using mysqlbinlog

Point-in-time recovery playback hits a GTID event although the recovery server has GTID disabled.

Related Errors

MySQL Error 1840 ER_GTID_PURGED_WAS_CHANGED

Occurs when GTID_PURGED is altered while replication is running.

MySQL Error 1782 ER_CANT_OPEN_ERROR_LOG

Raised when the server cannot write to the error log during GTID recovery.

MySQL Error 1236 ER_MASTER_FATAL_ERROR_READING_BINLOG

A generic replication I/O thread failure, often triggered by corrupted or mismatched binlogs.

FAQs

Can I safely switch GTID_MODE from OFF to ON in production?

Yes. Use the ON_PERMISSIVE phase to avoid downtime, then move to ON.

Will RESET MASTER delete critical data?

RESET MASTER only removes binary logs on the primary. Ensure backups exist before purging.

Is GTID required for replication?

No, but GTID simplifies fail-over and recovery. Mixing modes leads to errors like 1784.

How does Galaxy help?

Galaxy highlights GTID variables in session status and warns when executing GTID statements on GTID disabled servers.

Start Querying with the Modern SQL Editor Today!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

Check out some other errors

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo