How to Fix MySQL Error 1880 (ER_OLD_TEMPORALS_UPGRADED)

Published
Length
3 min read

Luis Felipe Dias

All posts

You see mysql error 1880 when the server updates old time columns to the new format. You resolve it by finishing the table rebuild and checking that your apps handle the warning. In the database engine, this alert uses the symbol ER_OLD_TEMPORALS_UPGRADED and SQLSTATE HY000. The official message states that TIME, TIMESTAMP, or DATETIME columns of old format have been upgraded. Although it carries an error number, the server often treats this event as a status note. Your table change still finis

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.

You see mysql error 1880 when the server updates old time columns to the new format. You resolve it by finishing the table rebuild and checking that your apps handle the warning.

In the database engine, this alert uses the symbol ER_OLD_TEMPORALS_UPGRADED and SQLSTATE HY000. The official message states that TIME, TIMESTAMP, or DATETIME columns of old format have been upgraded. Although it carries an error number, the server often treats this event as a status note. Your table change still finishes, and the database writes the new column layout to disk.

Root causes of mysql error 1880 in your database

Older database versions stored time, date, and timestamp values without support for fractional seconds. Newer versions changed the binary storage layout to save space and support fine time precision. When you upgrade a server in place, the database engine does not rewrite every table right away. Instead, it keeps reading the legacy temporal columns in their old binary format.

The engine triggers mysql error 1880 when you run a table alter or repair operation later. During a full table rebuild, the engine converts those legacy columns to the current binary format. It then sends the ER_OLD_TEMPORALS_UPGRADED message to tell the client that the storage format changed.

This message can surprise teams if deployment scripts treat every database note or warning as a failure. Migration tools might stop mid-run because they do not expect a status message during a schema change. Replication topologies can also hit issues if replicas and source servers use different storage rules.

How to diagnose and fix old temporal columns in production

Start by checking your database logs and client output to see which table triggered the message. Because the message means the upgrade already happened on that table, you do not need to roll back. Verify the table structure after the change to make sure all time columns match your schema plan.

If you want to find other legacy tables before they cause surprise alerts, inspect your system metadata. Look for tables created before your last major database upgrade that hold date or time fields. Schedule controlled maintenance windows to rebuild those tables one by one during low traffic hours.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

A full table rebuild copies data into a fresh structure and updates all old temporal columns at once. Once every table uses the modern storage format, the server will never send this alert again. Test this rebuild process on a staging copy first so you know how long large tables take.

Safe ways to run schema fixes in production

Running table rebuilds in production requires care so you do not lock out active app traffic. Never give engineers broad admin rights on production servers just to check or rebuild legacy tables. Instead, scope database roles to the exact schemas and actions needed for the maintenance task.

Keep sensitive customer data safe while engineers check table health or test column changes. When engineers query tables to verify date fields, data masking can rewrite matched fields in results. For example, masking can replace emails, phone numbers, card numbers, or national IDs while leaving timestamps readable.

Review every schema change request before it runs against live data. Track who ran the table rebuild and capture the exact server response in your central audit logs. This clear trail helps your team confirm which tables finished the format upgrade and which ones remain.

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 1880 mean my table alter failed?

No, the message means the database upgraded your old time columns to the new format during the rebuild. Your table change succeeded, and the columns now use the modern binary storage layout.

Can I revert columns back to the old temporal format?

No, once the database engine upgrades TIME, TIMESTAMP, or DATETIME columns, you cannot downgrade their binary format. The new format is better for storage efficiency and works with all modern database features.

Why did this message appear months after our server upgrade?

In-place server upgrades leave existing table files untouched until a command forces a table rebuild. The message appears only when you alter or optimize an older table for the first time.

The query runs. The emails stay hidden.