Common SQL Errors

MySQL Error 1003: ER_YES – Meaning, Causes, and Fixes

Galaxy Team
August 5, 2025

ER_YES is an internal MySQL note code that appears in SHOW WARNINGS output after statements like EXPLAIN FORMAT=JSON and signals an informational message, not a failure.

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 1003 (ER_YES)?

MySQL Error 1003: ER_YES appears as a YES note in SHOW WARNINGS after extended EXPLAIN or optimizer traces. It is informational and indicates MySQL generated a note, not a failure. Review SHOW WARNINGS for real issues or suppress the note with proper SQL session settings.

Error Highlights

Typical Error Message

YES

Error Type

Informational Note

Language

MySQL

Symbol

ER_YES

Error Code

1003

SQL State

Explanation

Table of Contents

What is MySQL Error 1003 (ER_YES)?

MySQL assigns the symbolic name ER_YES to error code 1003. Instead of signaling a failure, the server uses this placeholder when it needs to store a simple YES value in the Code column of Warning or Note rows.

The note usually appears after diagnostic statements such as EXPLAIN FORMAT=JSON, OPTIMIZER_TRACE, or ANALYZE TABLE.

When you immediately run SHOW WARNINGS, rows with Level = 'Note' and Code = 1003 display the literal word YES.

This output can surprise developers who expect only errors or warnings. Because ER_YES is not an error state, queries still succeed. Understanding why the note is generated helps you separate harmless information from actionable problems.

Does ER_YES require a fix?

No application logic must change solely because ER_YES appears. The note is informational.

You only need to investigate if other Warning or Error rows accompany it.

Where is ER_YES documented?

MySQL documents ER_YES in the MySQL Source and in the server error-const file, describing it as “Used in the construction of other messages.” Public manuals reference it indirectly through SHOW WARNINGS examples.

.

Common Causes

Related Errors

FAQs

Is ER_YES a real error?

No. It is an informational note that does not affect query execution.

Can I disable ER_YES messages?

You cannot disable the code directly, but you can avoid statements that generate it or filter Level = 'Note' in SHOW WARNINGS.

Does ER_YES indicate corruption?

No. It merely records a YES value in diagnostic output. It never signals corruption or data loss.

How does Galaxy help?

Galaxy collapses ER_YES notes by default and surfaces actionable warnings, letting developers focus on genuine problems.

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