Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-17-2007, 11:48 PM
Chuck W1CEW
 
Posts: n/a
Default Using mysqldump, getting error error #1016, can't open *.ibd file

So we have a MySQL database that suddenly started reporting "can't
open *.ibd file" errors on InnoDB tables in phpMyAdmin. (MyISAM are
fine). To recover the data is all I want at this point -- so one
suggestion I came across was to try and dump using mysqldump like
this:

mysqldump -u root -p mydatabase > databasedump.sql
Enter password: *******************
mysqldump: Got error: 1016: Can't open file: 'access.ibd' (errno: 1)
when using
LOCK TABLES

Is there a way to run this dump so that it will export the database
tables and ignore the *.ibd error? I had read that removing *.frm
files might help, but our testing suggests that it isn't effective
either.

Any help will result in hero status. :-) Holiday card list and all
those good karma things.

thanks!!

Chuck

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-18-2007, 05:52 AM
Axel Schwenke
 
Posts: n/a
Default Re: Using mysqldump, getting error error #1016, can't open *.ibd file

Chuck W1CEW <cewyattjr@gmail.com> wrote:

> So we have a MySQL database that suddenly started reporting "can't
> open *.ibd file" errors on InnoDB tables in phpMyAdmin. (MyISAM are
> fine). To recover the data is all I want at this point -- so one
> suggestion I came across was to try and dump using mysqldump like
> this:
>
> mysqldump -u root -p mydatabase > databasedump.sql
> Enter password: *******************
> mysqldump: Got error: 1016: Can't open file: 'access.ibd' (errno: 1)
> when using LOCK TABLES


Sometimes it helps to read and understand error messages:

~ $ perror 1
OS error code 1: Operation not permitted

So somehow the access permissions on the 'access.ibd' file got screwed.

> Is there a way to run this dump so that it will export the database
> tables and ignore the *.ibd error?


No. The .ibd files contain the table data. No file, no data to dump.

> I had read that removing *.frm
> files might help, but our testing suggests that it isn't effective
> either.


OMG. You must never manipulate files in MySQLs data directory unless
you know *exactly* what you're doing.


XL
--
Axel Schwenke, Support Engineer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:57 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.