Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have what I believe is a corrupted MySQL table. In the database I can see there is only a .frm file, not a .mdi or .mdy for it. How can I recover data from this .frm file?

I believe that I have to get data from the ibdata1 file?

share|improve this question
up vote 4 down vote accepted

There is no data in the .frm file; that file only contains the table definition. However, if you're not running a MyISAM table, it's expected that there will be no .MYD or .MYD files, because those are only used for MyISAM tables. Instead, the data will be somewhere else -- for InnoDB tables, for instance, it'll be in your ibdata* files (or perhaps in a per-table file if you've got file_per_table turned on).

share|improve this answer
is there a tool i can use to just view data in the ibdata file? – Beginner Jul 12 '11 at 11:11
Most people use MySQL. – womble Jul 12 '11 at 11:20
Lol yeh i think i forgotten my password, i give it a go thanks – Beginner Jul 12 '11 at 11:23
That's easy to fix: – womble Jul 12 '11 at 22:50

The .frm file doesn't really contain any data--it's just the table definition. You can read the specifics here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.