mysqldude
Error codes › MY-010884

MySQL error MY-010884 ER_INNODB_PK_ONLY_IN_MYSQL

Error messageTable … has no primary key in InnoDB data dictionary, but has one in MySQL! If you created the table with a MySQL version < 3.23.54 and did not define a primary key, but defined a unique key with all non-NULL columns, then MySQL internally treats that key as the primary key. You can fix this error by dump + DROP + CREATE + reimport of the table.
SymbolER_INNODB_PK_ONLY_IN_MYSQL
SQLSTATEHY000
TypeServer error-log message
Versionssince 8.0.11 active

Messages numbered MY-010000 and up are written to the MySQL server error log (MySQL 8.0 and later); they are not returned to clients.