Common SQL Errors

MySQL Error 66: EE_DEBUG_INFO – Meaning, Causes, and Fixes

Galaxy Team
August 5, 2025

EE_DEBUG_INFO (error 66) is an internal MySQL debug error added in 8.0.13 that surfaces when the server hits a code path meant only for diagnostic builds.

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 66 EE_DEBUG_INFO?

MySQL Error 66: EE_DEBUG_INFO appears when a debug-compiled MySQL 8.0.13+ server encounters an unexpected state and emits internal diagnostics. Resolve it by reviewing the server error log, validating tables, and running a production build or upgrading to a stable release.

Error Highlights

Typical Error Message

%s. EE_DEBUG_INFO was added in 8.0.13.

Error Type

Runtime Error

Language

MySQL

Symbol

EE_DEBUG_INFO

Error Code

66

SQL State

Explanation

Table of Contents

What is MySQL Error 66 EE_DEBUG_INFO?

MySQL raises error 66 with the condition name EE_DEBUG_INFO when the server, compiled with debug flags, reaches a code branch intended only for diagnostic output. The message usually reads “%s. EE_DEBUG_INFO was added in 8.0.13.”

This error is classified as a global runtime error and is rarely exposed to clients in production environments.

It signals an internal inconsistency that developers wanted to trace during debugging.

When Does EE_DEBUG_INFO Occur?

The error emerges during query execution, startup, or shutdown when the server detects an unexpected state in storage engines, metadata caches, or replication logic.

Because the branch is guarded by debug macros, it is seen mainly on servers built with WITH_DEBUG enabled.

Users connecting through any client, including Galaxy’s SQL editor, will receive the error text immediately after the failing statement.

What Causes This Error?

Internal code assertions failing in debug builds trigger EE_DEBUG_INFO. Common hotspots are corrupted tables, corrupted redo logs, and plugin API misuse.

Developers occasionally add temporary debug prints that call my_error(EE_DEBUG_INFO, ...).

Running mismatched client and server versions or using experimental plugins can widen the chance of hitting these debug paths.

How to Fix MySQL Error 66 EE_DEBUG_INFO

Start by inspecting the MySQL error log for a stack trace or assertion description. The log pinpoints the file and line that raised EE_DEBUG_INFO.

Next, verify data integrity with CHECK TABLE or mysqlcheck. Repair any corruption found.

If the problem persists, migrate to a production build compiled without debug flags or upgrade to the latest GA release where the offending debug call is removed.

Common Scenarios and Solutions

Scenario: EE_DEBUG_INFO after restarting the server. Solution: Review innodb_redo.log integrity, restore from backup, or recreate redo logs.

Scenario: Error appears only on a single table query. Solution: Run CHECK TABLE tbl_name; then REPAIR TABLE tbl_name if MyISAM, or ALTER TABLE ...

FORCE for InnoDB.

Best Practices to Avoid This Error

Run production workloads on non-debug builds. Debug binaries are slower and contain extra assertions meant for development.

Keep MySQL upgraded and apply minor releases promptly. Newer versions often remove debug stubs that escaped into GA.

Related Errors and Solutions

ER_ASSERT_FAILURE: Similar internal assertion but always compiled in; fix by upgrading and checking corruption.

ER_SERVER_SHUTDOWN: Raised when a fatal internal error forces shutdown; analyze error log like EE_DEBUG_INFO.

.

Common Causes

Related Errors

FAQs

Is EE_DEBUG_INFO a user error?

No. It indicates the MySQL server executed a debug-only code path. It is usually a bug or data corruption, not a SQL mistake.

Can I ignore the error if queries still run?

Ignoring it risks data integrity. Always investigate the cause and plan to upgrade or fix corruption.

Will switching to Galaxy fix the issue?

Galaxy surfaces the error quickly and lets you share logs with admins, but the root cause must be fixed on the MySQL server.

Does disabling general_log stop the error?

No. EE_DEBUG_INFO is raised independently of logging settings.

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