Jump to content

Table Locked, Table Crashed ... Help!


kjtocool

Recommended Posts

I have a large phpbb forum, the phpbb_posts table crashed late last night.  When I run a check on the table, I get:

 

worldofk_phpbb3.phpbb_posts check warning Table is marked as crashed and last repair failed 
worldofk_phpbb3.phpbb_posts check warning 1 client is using or hasn't closed the table prope... 
worldofk_phpbb3.phpbb_posts check warning Size of indexfile is: 1847600128      Should be: 1... 
worldofk_phpbb3.phpbb_posts check warning Size of datafile is: 858198988       Should be: 84... 
worldofk_phpbb3.phpbb_posts check error Found 1469781 keys of 1084641 
worldofk_phpbb3.phpbb_posts check error Corrupt 

 

Any attempt to repair the table causes Apache (httpd) to crash.  Executing "Unlock Tables" executes successfully, but does not clear the lock on phpbb_posts.  Restarting the MYSQL service does not clear the lock.  Restarting the server did not clear the lock.

 

I'm out of ideas, any help is greatly appreciated.

 

:wtf:

Link to comment
Share on other sites

I do, but not as recent as I'd like.  I'd lose about 100,000 records worth of data.

 

I don't think it's that bad however.  Even though the table is locked, I think I still have read access and should be able to make a full dump of the DB if need be.  The issue seems to be an insert statement that hung, locked the table, and now the keys are all messed up.

 

I've decided to try repairing the table via command line, unfortunatly the command "myisamchk --recover --quick phpbb_posts.MYI" can't be used because it fills up the /tmp directory to 100% capacity then hangs as it waits for more space.  As far as I know, the only way to grant that directory more space would be to reformat, ugh.

 

I'm trying instead to repair the table via command line using "myisamchk --safe-recover --quick phpbb_posts.MYI" which uses memory rather than the tmp directory.  Unfortunatly it's also incredibly slow, so I'm waiting as it runs, hopefully if it completes my issue will be fixed.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.