|
Posted by Bill Karwin on November 29, 2005, 4:13 pm
Please log in for more thread options
maddunr@yahoo.com wrote:
show/hide quoted text
> I have tried
> importing the SQL files (mysqldump) and copying the .frm, .myd and .myi
> files into the existing DATA folder on my local machine.
I don't understand -- you did both? One or the other should be the
solution, but not both. Or did you mean that you tried one method of
restoratin, found it didn't work, and then tried the other with the same
result?
show/hide quoted text
> In both cases, the database is created and I can see the table
> structure. But when I click on most of the tables, I get the following
> error:
>
> #1016 - Can't open file: '<table_name>.InnoDB'. (errno: 1)
show/hide quoted text
> Can anyone pls throw some light on this issue? Any suggestion will be
> greatly appreciated.
Similar issues discussed MySQL forums seem to state that this is caused
by mixing MyISAM table files (.frm, .myd, .myi) and InnoDB tables. You
have .frm files for which there is no entry in the InnoDB tablespace file.
I'm guessing that when you restored your mysqldump files, it created the
database using InnoDB tables. Then you put your .frm files in place,
which makes InnoDB think that you want to store the tables in one file
per table, instead of the default configuration of all tables in one
file. Thus it became confused.
You can probably remove the .FRM, .MYD, and .MYI files (from the data
directory, not your originals!) and then restart MySQL. The data is
show/hide quoted text
probably all in <datadirectory>/ibdata1 at this time.
See also
http://dev.mysql.com/doc/refman/5.0/en/innodb-troubleshooting-datadict.html
Regards,
Bill K.
|