MySQL Forums
Forum List  »  German

Re: kaputte tabelle erstellen die reparierbar ist mit REPAIR TABLE
Posted by: Oli Sennhauser
Date: August 10, 2011 08:40AM

Hoi Du,

Kommt etwas drauf an, ob InnoDB oder MyISAM.

Bei MyISAM ist das recht einfach:

dd if=test.MYD bs=1024 count=100 of=corrupt.MYD
dd if=/dev/zero bs=1024 count=1 of=p2
dd if=test.MYD bs=1024 skip=101 of=p3
cat p2 p3 >> corrupt.MYD

Das selbe kannst Du mit den Indices machen.

Bei InnoDB ist es etwas schwieriger. InnoDB_file_per_table = 1 hilft dir etwas.

Dann kannst Du Dir gezielt einige 16 k Blocks zerschiessen....

Gruss,
Oli
--
www.fromdual.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: kaputte tabelle erstellen die reparierbar ist mit REPAIR TABLE
1135
August 10, 2011 08:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.