MySQL Forums
Forum List  »  Backup

Re: Need to access/backup recovered deleted MySql data
Posted by: Jay Pipes
Date: June 27, 2005 10:22PM

OK, try this...

1) Create a copy of the table in another temporary database using the CREATE TABLE of the crashed table.
2) Remove the new data file (the .MYD file in the new directory named for the database you just made)
3) Move the .frm and .MYI files from that same directory to the directory of your crashed database.
4) Change to the directory of the crashed database files (where you just put the newly created .frm and .MYI files)
5) Create a backup of your data file by running #> myisamchk -B table_name
5) Run #> myisamchk -r -q tbl_name
6) Tell me what happens.

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Need to access/backup recovered deleted MySql data
2634
June 27, 2005 10:22PM
4972
July 11, 2005 12:44AM


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.