473,394 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
Jul 23 '05 #1
1 7107
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.
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Cam | last post by:
Hi I'm using this simple rss parser that i would like to have open in another window. But I'm very much a beginner in php scripting. Here is the script on the page <?php ...
7
by: Lowell Kirsh | last post by:
I have a script which I use to find all duplicates of files within a given directory and all its subdirectories. It seems like it's longer than it needs to be but I can't figure out how to shorten...
6
by: haynesc | last post by:
Hi, I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and...
7
by: Jeff | last post by:
Hello everybody, I just came accross a little problem, I think the answer must be silly, but I may as well ask. I want open() to create a file if it does not exist, or else open it, and then for...
4
by: Karthick S. | last post by:
Hi, fgets returns NULL on error and the first argument on success. I want to open a file and read it using fgets. This is returning NULL, when the file is empty. Is there anyway to circumvent...
9
by: ferbar | last post by:
Hi all, I'm trying to read from the txt file 'ip.packets.2.txt' using the read function. It seems everything ok, but I get a -1 when executing >>bytesr = read(fdo1, bufread, 2); The 'open'...
52
by: paytam | last post by:
Hi all Can anyone tell me how can I check that a file exist or no.I mean when you use this commands FILE *fp; if(!fp) //Could not open the file doen't show why it can not open it,may be the...
0
by: Chuck W1CEW | last post by:
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...
1
by: Revathi Balakrishnan | last post by:
Hi Friends The below shown is part of XML code <subcategory> <name>Portfolio Analytics</name> <description>Portfolio Analytics</description> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.