If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Table Crashed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-09, 05:09
sam.joseph74 sam.joseph74 is offline
Registered User
 
Join Date: May 2009
Posts: 2
Table Crashed

When I am making certain modifications in the xyz table. While doing so, I encounter a power outage and my system shuts down unexpectedly. Again I switch on my system and try to open the table, the following error message gets displayed:

“Table is crashed and last repair failed”

The data saved in the xyz table becomes inaccessible after the error occurrence.

Tell me what to do to recover my data.

Last edited by sam.joseph74; 06-03-09 at 05:13.
Reply With Quote
  #2 (permalink)  
Old 06-03-09, 08:04
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
try issuing a REPAIR command
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 06-15-09, 03:35
addisonphilip addisonphilip is offline
Registered User
 
Join Date: Jun 2009
Posts: 5
Re: Table Crashed

To resolve the above error message, you will need to repair xyz.myi table by using these steps:

1. To check and analyze the corrupted table, use either of the two commands:
myisamchk xyz.myi
Or
Check Table xyz
2. To repair the corrupted table, use either of the two commands:
myisamchk -r –q xyz (-r -q means “quick recovery mode”)
Or
Repair Table xyz

But if the above repair commands fail to repair the xyz table, you need to repair the table by using powerful MySQL Repair software. Such MySQL Database Repair applications incorporate advanced scanning algorithms to repair and restore the data stored in MyISAM tables. I would suggest Stellar Phoenix Database Recovery For MySQL to repair and recover corrupted MySQl database.
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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On