List:General Discussion« Previous MessageNext Message »
From:Heikki Tuuri Date:February 23 2006 2:21pm
Subject:Re: error 1016 : cant open ibd file even though it exists
View as plain text  
Rithish,

the table definition does not exist in the ibdata file. You have the 
.frm file and the .ibd file, but that does not help if the table 
definition is not stored in the ibdata file.

How did you end up in this situation? Did you move .frm and .ibd files 
around? Did you recreate the ibdata1 file?

Best regards,

Heikki
Oracle Corp./Innobase Oy
InnoDB - transactions, row level locking, and foreign keys for MySQL
InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up 
MyISAM tables
http://www.innodb.com/order.php

.............
List:       mysql
Subject:    error 1016 : cant open ibd file even though it exists
From:       "Rithish Saralaya" <rithish.saralaya () tallysolutions ! com>
Date:       2006-02-22 11:27:44
Message-ID: ANEAKJJGBMNHIAEBLIAIMEPCECAA.rithish.saralaya () 
tallysolutions ! com
[Download message RAW]


Hello.

I get the following error when I try to query a table in a particular
database (test). The error is generated for all tables within that database.
However, 'mysql' database works fine.

ERROR 1016 (HY000): Can't open file: 'TBL_FORUM_MSG_BODY.ibd' (errno: 1)

However, I have noticed that both the .frm and the .ibd file exists for the
table TBL_FORUM_MSG_BODY. Then why the error? I looked into the error log
and it is as follows

060222 15:14:09  InnoDB error:
Cannot find table test/TBL_FORUM_MSG_BODY from the internal data dictionary
of InnoDB though the .frm file for the table exists. Maybe you
have deleted and recreated InnoDB data files but have forgotten
to delete the corresponding .frm files of InnoDB tables, or you
have moved .frm files to another database?
Look from section 15.1 of http://www.innodb.com/ibman.html
how you can resolve the problem.
060222 15:14:09 [ERROR] /usr/sbin/mysqld: Can't open file:
'TBL_FORUM_MSG_BODY.ibd' (errno: 1)

I tried restarting MySQL service in the hope that INNoDB will recognise the
files properly, but to no avail. Is there a way to find and correct what has
gone wrong? Someone please say 'yes'...

I am on MySQL 4.1.11 with InnoDB as the storage engine and with per-table
tablespace.

Regards,
Rithish.


Thread
error 1016 : cant open ibd file even though it existsRithish Saralaya23 Feb
  • Re: error 1016 : cant open ibd file even though it existssheeri kritzer23 Feb
    • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya24 Feb
RE: error 1016 : cant open ibd file even though it existsSST - Adelaide)23 Feb
  • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya23 Feb
RE: error 1016 : cant open ibd file even though it existsSST - Adelaide)23 Feb
  • Re: error 1016 : cant open ibd file even though it existsAdy Wicaksono23 Feb
    • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya23 Feb
Re: error 1016 : cant open ibd file even though it existsHeikki Tuuri23 Feb
  • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya24 Feb
    • RE: error 1016 : cant open ibd file even though it existsmysql24 Feb
Re: error 1016 : cant open ibd file even though it existsHeikki Tuuri24 Feb
  • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya25 Feb
    • Re: error 1016 : cant open ibd file even though it existsDavid Logan25 Feb
      • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya25 Feb
        • RE: error 1016 : cant open ibd file even though it existsmysql25 Feb
          • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya28 Feb
            • RE: error 1016 : cant open ibd file even though it existsmysql28 Feb
Re: error 1016 : cant open ibd file even though it existsHeikki Tuuri25 Feb
  • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya27 Feb
Re: error 1016 : cant open ibd file even though it existsHeikki Tuuri27 Feb
  • MYSQL: Unlimited Forums, Scalablity Issues, advice please?jay27 Feb
    • Re: MYSQL: Unlimited Forums, Scalablity Issues, advice please?Philip Hallstrom27 Feb
      • Re: MYSQL: Unlimited Forums, Scalablity Issues, advice please?jay28 Feb
  • RE: error 1016 : cant open ibd file even though it existsRithish Saralaya28 Feb