My Oracle Support Banner

[Warning] InnoDB: Table Contains "n" User Defined Columns In InnoDB, But "m" Columns In MySQL (Doc ID 2797903.1)

Last updated on AUGUST 24, 2021

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Symptoms

After an unexpected restart of MySQL 5.7.33 and before, table definition gets corrupted failing with the follow errors:

[Warning] InnoDB: Table <schema_name>/<table_name> contains "n" user defined columns in InnoDB, but "m" columns in MySQL. Please check INFORMATION_SCHEMA.INNODB_SYS_COLUMNS and http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.


Where "n" <> "m" columns

Changes

 An ALTER TABLE statement adding or removing columns was being executed when the service was killed off or restarted.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.