MySQL Forums
Forum List  »  Data Recovery

Table names appear in 'show tables'; but tables don't exist
Posted by: Jonathan Turkanis
Date: February 19, 2012 02:39PM

Hi,

Last night an application started reporting MySQL errors. I checked the logs and found errors of the form

ERROR 1146 (42S02): Table 'Database.Table' doesn't exist

When I run "show tables" I see the correct list of tables, but when I try to access any table, e.g. by running "SELECT * FROM Table" I get an error message saying that the table doesn't exist. When I run "repair table Table" I get

+----------------+--------+----------+--------------------------------------+
| Table | Op | Msg_type | Msg_text |
+----------------+--------+----------+--------------------------------------+
| Database.Table | repair | Error | Table 'Database.Table' doesn't exist |
| Database.Table | repair | error | Corrupt |
+----------------+--------+----------+--------------------------------------+

All the tables use the InnoDB storage engine.

What could cause this error, and is there any way to recover the data?

Options: ReplyQuote


Subject
Views
Written By
Posted
Table names appear in 'show tables'; but tables don't exist
4993
February 19, 2012 02:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.