Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Can't open file: 'mytable.ibd' (errno: 1)

 
   Database Help (Home) -> mySQL RSS
Next:  DBA user in Oracle conflicts during migration  
Author Message
Andy Fish1

External


Since: Feb 12, 2004
Posts: 5



(Msg. 1) Posted: Thu Feb 17, 2005 5:40 am
Post subject: Can't open file: 'mytable.ibd' (errno: 1)
Archived from groups: mailing>database>mysql (more info?)

Hi,

I read in the mysql manual that it's possible to copy the 'frm' files from
one mysql server to another, but when I try to do this I get the error
"Can't open file: 'mytable.ibd' (errno: 1)" on the detstination server.

There are no '.ibd' files anywhere on the server I'm copying the data from.
My database is using innodb.

TIA for any ideas

Andy

 >> Stay informed about: Can't open file: 'mytable.ibd' (errno: 1) 
Back to top
Login to vote
Bill Karwin1

External


Since: Jun 17, 2004
Posts: 42



(Msg. 2) Posted: Fri Feb 18, 2005 5:38 pm
Post subject: Re: Can't open file: 'mytable.ibd' (errno: 1) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andy Fish wrote:
 > Hi,
 >
 > I read in the mysql manual that it's possible to copy the 'frm' files from
 > one mysql server to another, but when I try to do this I get the error
 > "Can't open file: 'mytable.ibd' (errno: 1)" on the detstination server.

If you use InnoDB tables, but use the default mechanism of storing
multiple tables in one file, then you might not see any .ibd files.
Tables are instead stored together in InnoDB tablespace files, e.g.
"ibdata1" in the MySQL data directory.

There is an option you can use in the my.cnf to make InnoDB tables store
their data in tablename.ibd, one file per table.

I would guess that when you moved the .FRM file to another server
manually, it couldn't find the table in the InnoDB tablespace, so it
tried to find a file specific to that table: mytable.ibd. Not finding
the table in either storage location, it gave an error related to the
latter location it searched.

I would recommend using this method instead to move table definitions
between servers:

1. mysqldump --opt --no-data databasename tablename > tablename_create.sql
2. Copy tablename_create.sql to the other server
3. mysql newdatabasename < tablename_create.sql

Regards,
Bill K.

 >> Stay informed about: Can't open file: 'mytable.ibd' (errno: 1) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
errno: 150 situation - i'm getting an errno: 150 when creating a table and this is what i read from the mysql manual: "Both tables must be InnoDB type. In the referencing table, there must be an index where the foreign key columns are listed as the first columns in th...

help,a regular text file how to sql 2000 table code ? - help,a regular text file how to sql 2000 table code ? i have a text file as follow, line with ¡°|¡±and {LF}, 8|-000000186075919.|+000000000387820.|2008-03-31|20010423| 9|-000000000003919.|-000000000123620.|2008-03-31|20010123|..

Best way to issue hundreds of inserts/updates??? - Using mysql 4.0.23- What is the best way to execute several (hundreds of) inserts and updates? Rather than issuing tons of individual inserts and updates, can I send the strings to a text file and then have mysql do them all?? IE : query.txt insert..

MySQL freezes, brings XP machine to a grinding halt - I've been using MySQL for a while for fairly light database development on my XP machine. Currently, I am just starting a new project and have experienced some big problems with MySQL today both on my office machine and at home where running a particular...

login as user 'root' but do not have root privlages and my.. - Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it doesn't recognize me being logged in as root (via..
   Database Help (Home) -> mySQL All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]