Table deleted from data directory

This is a discussion on Table deleted from data directory within the MySQL Database forums, part of the Database Forums category; I had a table with a huge amount of test data. For some reason, I started getting errors that said ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-13-2007
vijay
 
Posts: n/a
Default Table deleted from data directory

I had a table with a huge amount of test data. For some reason, I
started getting errors that said corrupt key file, try repairing the
table. I fired a "repair table blah" and waited for more than 8 hours
but the repairing never completed. As I was only working with test
data, I decided to drop that table and start anew. The "drop table
blah" was also taking forever. Then I finally decided to go inside
mysql data directory and did a "rm -rf blah.*". Now when I try to
create that table again, I get "ERROR 1105 (HY000): MyISAM table
'blah' is in use (most likely by a MERGE table). Try FLUSH TABLES.". I
tried "FLUSH TABLES" and I am waiting for more that 2 hours to let it
complete.

Is there any way to fix this problem _without_ restarting the server?

Reply With Quote
  #2 (permalink)  
Old 03-13-2007
Axel Schwenke
 
Posts: n/a
Default Re: Table deleted from data directory

"vijay" <vijaykcm@gmail.com> wrote:
> I had a table with a huge amount of test data. For some reason, I
> started getting errors that said corrupt key file, try repairing the
> table. I fired a "repair table blah" and waited for more than 8 hours
> but the repairing never completed. As I was only working with test
> data, I decided to drop that table and start anew. The "drop table
> blah" was also taking forever. Then I finally decided to go inside
> mysql data directory and did a "rm -rf blah.*". Now when I try to
> create that table again, I get "ERROR 1105 (HY000): MyISAM table
> 'blah' is in use (most likely by a MERGE table). Try FLUSH TABLES.". I
> tried "FLUSH TABLES" and I am waiting for more that 2 hours to let it
> complete.
>
> Is there any way to fix this problem _without_ restarting the server?


No. In fact deleting in the datadir with mysqld still running was the
error. As long as you are *very* sure what you're doing, you must not
fiddle around with files in the datadir.

I don't think you will be able to cleanly shutdown mysqld anyway. You
can try kill -USR1 or even kill -KILL. But probably you will end up
with garbage in your tables.


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/
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

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



All times are GMT +1. The time now is 06:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0