I'm trying to recover a semi corrupted InnoDB table. I noticed the issue while trying to add a new index to the table.
ALTER TABLE `<table>` ADD INDEX `<name>`
ERROR 1712 (HY000): Index "TEST008"--temporary-- is corrupted
The check table <table> EXTENDED doesn't pick up on the issue.
+---------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+---------------+-------+----------+----------+
| <table> | check | status | OK |
+---------------+-------+----------+----------+
I have tried to drop the corrupted index using
ALTER TABLE table DROP INDEX "TEST008"--temporary--\ but it ends up with
ERROR 1091 (42000): Can't DROP '"TEST008"--temporary--'; check that column/key exists
Am I forced to recreate the table using for example OPTIMIZE?