Common SQL Errors

MySQL Error 1134: ER_UPDATE_INFO - How to Fix and Prevent

Galaxy Team
August 5, 2025

MySQL Error 1134 (ER_UPDATE_INFO) is an informational notice that reports how many rows were matched, changed, and warned after an UPDATE but may be surfaced as an error by some clients or drivers.

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 1134: ER_UPDATE_INFO?

MySQL Error 1134: ER_UPDATE_INFO appears when the server returns the Rows matched/Changed/Warnings statistics after an UPDATE and the client treats the notice as an error. Treat it as a warning or adjust client settings to resolve the issue.

Error Highlights

Typical Error Message

Rows matched: %ld Changed: %ld Warnings: %ld

Error Type

Data Modification Warning

Language

MySQL

Symbol

ER_UPDATE_INFO

Error Code

1134

SQL State

Explanation

Table of Contents

What is MySQL error 1134 (ER_UPDATE_INFO)?

MySQL sends the message “Rows matched: %ld Changed: %ld Warnings: %ld” after every UPDATE statement to summarize its outcome. Internally this is tagged ER_UPDATE_INFO with error code 1134 and SQLSTATE HY000.

Most MySQL shells display the string as an informational notice.

Certain connectors, ORMs, or logging layers misinterpret the packet as an error and raise an exception, disrupting application flow.

What Causes This Error?

Clients that default to treating any non-zero error code or SQLSTATE HY000 as an exception will surface ER_UPDATE_INFO even though the statement completed successfully.

Old MySQL client libraries (pre-5.6) and some thin JDBC/ODBC wrappers lack differentiation between notices, warnings, and errors, leading to false-positive error handling.

How to Fix MySQL Error 1134

First, confirm that the UPDATE ran by checking the affected row counts in MySQL or the Galaxy query history.

If data changed correctly, adjust the client configuration so ER_UPDATE_INFO is handled as a warning.

Many drivers expose flags such as CLIENT_FOUND_ROWS, suppressInfoMessages=true, or log-only notice levels. Enable these to prevent exceptions while still logging the row statistics.

Common Scenarios and Solutions

Web applications using Python mysqlclient 1.3.x often see OperationalError: 1134. Upgrade to mysqlclient 2.x or wrap the call in try/except that ignores 1134.

Java apps on MySQL Connector/J before 8.0.29 may throw SQLNonTransientException.

Set dumpQueriesOnException=false and enablePacketDebug=false, or upgrade the connector.

Best Practices to Avoid This Error

Always use the latest MySQL connectors, which classify ER_UPDATE_INFO correctly. Pin versions in dependency manifests to avoid regression.

In Galaxy, enable query result metadata preview so developers see the matched/changed counts directly, preventing confusion and needless exception handling.

Related Errors and Solutions

ER_INSERT_INFO (code 1135) reports row counts for INSERT statements and can trigger the same client misclassification.

Treat it identically.

Warnings such as Rows matched but not changed (SQLSTATE 01000) may also be surfaced as errors. Adjust warning filters rather than catching generic exceptions.

.

Common Causes

Related Errors

FAQs

Is ER_UPDATE_INFO a real error?

No. It is an informational notice that some clients misinterpret. The UPDATE has already succeeded.

Can I disable the message on the server?

Not directly. The server always sends the packet. Suppress or reclassify it on the client side.

Will ER_UPDATE_INFO roll back my transaction?

No. The transaction state is unaffected. You can still COMMIT or ROLLBACK normally.

How does Galaxy help?

Galaxy’s editor surfaces the matched/changed counts inline and classifies ER_UPDATE_INFO correctly, preventing false alarms during collaboration.

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