How to Fix MySQL Error 1134 (ER_UPDATE_INFO)

Published
Length
3 min read

Luis Felipe Dias

All posts

The message known as mysql error 1134 is an informational summary that reports matched, changed, and warning counts after an update statement runs. You fix issues around it by adjusting your client parser or fixing the data warnings that appear in the summary string. Many database tools treat every numbered server message as a fatal failure. In reality, MySQL uses this specific code to format the status output after a write operation finishes. Understanding how the engine builds this summary he

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

The message known as mysql error 1134 is an informational summary that reports matched, changed, and warning counts after an update statement runs. You fix issues around it by adjusting your client parser or fixing the data warnings that appear in the summary string.

Many database tools treat every numbered server message as a fatal failure. In reality, MySQL uses this specific code to format the status output after a write operation finishes. Understanding how the engine builds this summary helps your team avoid false alarms in production logs.

What causes mysql error 1134 in the database engine

In the official server registry, mysql error 1134 maps to symbol ER_UPDATE_INFO and uses SQLSTATE value HY000. The server formats the message with three numbers: rows matched, rows changed, and warnings.

Rows matched shows how many records met the filter rules of your statement. Rows changed shows how many records received new values that differed from their existing values. If a statement sets a column to the exact value it already holds, the engine counts that row as matched but not changed.

This difference often confuses app logic that checks affected row counts. An app might expect every matched row to report as changed. When the changed count returns zero, strict app wrappers may throw an exception and log the ER_UPDATE_INFO message as a failure.

A second trigger happens when the third number in the message, the warning count, is greater than zero. Data truncation, out-of-range numbers, or bad dates during a write can raise warnings. Some database drivers read the ER_UPDATE_INFO string, see a non-zero warning count, and halt the transaction.

How to diagnose and fix ER_UPDATE_INFO issues safely

Start by reading the three numbers in the message output from your database log. Look at the warning count at the end of the line first. If the warning count is above zero, run a diagnostic query in a read session to inspect the input values.

Check whether the incoming text is too long for the target column. Check whether numbers or dates match the column rules on the table. Fixing the input validation in your app clears the warnings without weakening database safety rules.

MySQL Access Governance + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Never turn off strict SQL modes in production just to hide warning counts. Removing strict checks lets the engine write cut-off strings or zeroed dates into your tables. That corrupts business records over time and breaks downstream reports.

If the warning count is zero, look at the matched and changed counts. When rows matched is positive but rows changed is zero, your query targeted rows that already had the new values. Update your client driver settings or app logic so it checks matched rows instead of changed rows when verifying idempotent writes.

Protecting production data during update checks

When engineers investigate why a write query matched zero rows or raised warnings, they often inspect raw table rows. Running manual checks against live tables creates risk if staff have broad write roles or view sensitive columns.

Teams should separate read checks from write tasks during incident response. Granting broad table roles to debug a simple update summary exposes customer data. You can apply data masking so the system rewrites emails, phone numbers, card numbers, and national IDs in query results while engineers check row counts.

You should also require peer approval before anyone runs a manual data fix in production. Logging every query and its ER_UPDATE_INFO output gives your security team a clear audit trail of how many rows changed.

Check MySQL queries and results on the wire

MySQL grants control who logs in. They do not check single queries or mask sensitive columns once a session starts. With hoop.dev, you run an open-source proxy, a sidecar for your MySQL, inline in the MySQL wire protocol. On every query an AI agent or human runs against production MySQL, RDS, or Aurora, hoop.dev decides to pass, mask, block, or hold it for review.

Multi-statement batches and prepared queries are split and checked one by one by hoop.dev guardrails, which refuse banned queries with a native MySQL error or hold risky ones for approval. On the response path, hoop.dev data masking rewrites string values in returned rows in memory, and every decision is logged. See the MIT-licensed project on GitHub.

Frequently asked questions

Does mysql error 1134 mean my update query failed?

No, symbol ER_UPDATE_INFO is a status message template with SQLSTATE HY000 that reports rows matched, rows changed, and warnings after an update finishes. If your app stops, it is reacting to a zero changed count or a non-zero warning count inside that summary.

Why does ER_UPDATE_INFO show rows matched but zero rows changed?

MySQL only increments the changed counter when a row receives a value different from its current stored value. If you run the same update twice with identical data, the second run matches the rows but changes zero of them.

How should we handle non-zero warnings in the ER_UPDATE_INFO message?

Inspect the session warnings right after the query runs in a staging setup to see which column caused the issue. Fix the data types and length checks in your app code rather than disabling strict server checks.

The query runs. The emails stay hidden.