MySQL Error MY-011050 – ER_INNODB_IDX_CNT_MORE_THAN_DEFINED_IN_MYSQL

MySQL Error Message

InnoDB: Table %s contains %lu indexes inside InnoDB,
which is different from the number of indexes %u defined in MySQL.

Reason for the Error

ER_INNODB_IDX_CNT_MORE_THAN_DEFINED_IN_MYSQL
was added in 8.0.4.