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 > database restore: deleted accidently

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-06, 15:59
param82 param82 is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
database restore: deleted accidently

Problem: Database dropped accidently. Tables were Innodb.
Backup: Just before dropping the database, I had copied MySQL folder in another drive
Status: The copied MySQL folder has .frm files.

Can anyone please help me in restoring the database and populate it with earlier entries??
Reply With Quote
  #2 (permalink)  
Old 03-22-06, 09:56
jfulton jfulton is offline
Registered User
 
Join Date: Apr 2005
Location: Baltimore, MD
Posts: 297
Quote:
Problem: Database dropped accidently. Tables were Innodb.
Backup: Just before dropping the database, I had copied MySQL folder in another drive
Status: The copied MySQL folder has .frm files.
From what I remember (so this could be way off...):
Innodb stores the data in a large file called something like ibdata. The .frm files just contain information about the table structures. (There are other files for indexes as well, but I think they might just be for MyISAM.) So, if all you have are the .frm files and no other form of backup, then you're most likely S.O.L.

This happened to me a few months ago. Unfortunately I can't remember all of the details, though. After a few days working on it we ended up having to restore from an older backup.

There was some pretty good info in the mysql forums and lots of "possible" solutions (though none worked for my situation), so try running a few searches over there. Or this.

Last edited by jfulton; 03-22-06 at 10:00.
Reply With Quote
  #3 (permalink)  
Old 03-25-06, 02:34
param82 param82 is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks.
But all tables were innoDB and I have read from forums that I can restore it using ibdata1.
But when I am copying ibdata1 to mysql/data and frm files to mysql/data/db, database is not starting.
Would appreciate if can get some help.
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