3

I've got the MySQL data files from an old server which has now crashed so I can not login to the server to do mysqldump etc. I am now trying to load the data on a new server. The only option I have is to copy/paste the data files that I have. But when I do so, some of the database tables throw this error "Table does not exist" when I can see it in my Navicat Window. The problem is only with some of the tables, not all.

My question is, how can I fix this error ? Or is there another way to import the data from data files?

2
  • Can you make an example with a specific datbase, and show which data files you have for it? Commented Apr 1, 2011 at 7:37
  • There are lots of tables in the DB. For each table, there is a .FRM, .MYD and a .MYI file. Does that help ? Commented Apr 1, 2011 at 7:42

1 Answer 1

1

The best piece of advice that comes to my mind is running a myisamchk on the respective table(s), paying special attention to the repair options.

Be sure to make backups of the data files beforehand.

Additional thoughts:

  • Make sure you have restarted the database server after adding the data files.

  • Are you sure you are addressing the correct table(s)? Note that on most Linux filesystems, the table name is case sensitive (as it's reflected by a file in the filesystem). So tablename != Tablename

Sign up to request clarification or add additional context in comments.

4 Comments

hmm tried a few different options. nothing seems to fix the issue. Do you know exactly what repair option I should try ?
Ah - the table that is throwing the error only has a.FRM for it. No, .MYI or .MYD - what are my options?
@Jimmy according to this, the .frm file contains the table's description only, no data. I don't know whether there is any tool to at least rebuild the table's structure from a FRM file
Ok, thanks for your help. I will have to dig into the archives again to find the .MYD files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.