List:General Discussion« Previous MessageNext Message »
From:Thimble Smith Date:April 20 2000 4:58pm
Subject:Re: undeleting table
View as plain text  
On Thu, Apr 20, 2000 at 09:58:11AM -0400, Graeme B. Davis wrote:
> Is there a way I can recover a table that still has all of the data in it,
> but the records are deleted?  myisamchk says this:

Take a backup of the table first, before you start messing with it.

If they're fixed-length records, you should be able to recover most
of it.  MySQL marks a record as deleted by changing the first byte
to 0.  Just change it to something other than 0 for each record, and
then run isamchk on the table.  I've never done it personally, but
it should work....

Tim

> Checking MyISAM file: mails.MYI
> Data records:       0   Deleted blocks:     153
> - check file-size
> - check key delete-chain
> - check record delete-chain
> - check index reference
> - check data record references index: 1
> - check record links
> 
> I'm hoping I can get those 153 back :(
> 
> Any suggestions
-- 
Tim Smith   < tim@stripped >  :MySQL Development Team:  Boone, NC  USA.
Thread
Table Design Questionlkeeton20 Apr
  • undeleting tableGraeme B. Davis20 Apr
    • Re: undeleting tablesinisa20 Apr
    • Re: undeleting tableThimble Smith20 Apr
      • UPDATE Using values from another table...August Zajonc24 Apr
      • UPDATE using values from other table.August Zajonc24 Apr
        • Re: UPDATE using values from other table.sinisa24 Apr
  • Re: undeleting tablesasha20 Apr
    • RE: undeleting tableMark D Wolinski20 Apr
      • Re: undeleting tableThimble Smith20 Apr
        • Re: undeleting tableJeremy Cole20 Apr