Solved

MySQL Back Up from  ibdata file

Posted on 2013-10-31
6
339 Views
Last Modified: 2013-11-01
I had some of my tables stored in MyISAM storage engine.

When I restored the DB it had dropped records from the MyISAM table.

I have a file on my hard drive named "ibdata" which is the exact same size as the database before it was restored.

Is there anyway I can restore the lost records from here?

Praying very hard for a positive response.
0
Comment
Question by:Brogrim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 43

Accepted Solution

by:
Rob earned 500 total points
ID: 39615768
Have a look here: http:Q_28268958.html
Recently helped someone restore their database
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 39615949
While tagit's directions from the other post will generally work, you'll need other data files for MyISAM.  The ibdata file is used for the InnoDB transaction-based engine.  If your data loss came from an InnoDB table, you would certainly need that file.

For MyISAM tables, there are three files of interest for each table.  The .FRM file contains the definition, the .MDY file contains data, and the .MYI file contains the index information.  These files are held in the data subdirectory, filed under the database's name (usually /var/lib/mysql/data/database_name).

Otherwise, the same instructions apply - stop MySQL, make it use the old tables (either re-point the directory, or move the files around), start MySQL, dump what you need, revert to the current tables.
0
 

Author Closing Comment

by:Brogrim
ID: 39616525
While way beyond ny understanding I have passed my the solution on to a friend who thinks he can do it, thanks
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 43

Expert Comment

by:Rob
ID: 39617849
Thanks for the points but is this really a solution? If so then routinet's comment deserves acknowledgement as this wasn't obvious in the other post.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 39617951
My personal bias notwithstanding, I agree with tagit.

You make me sad...
0
 

Author Comment

by:Brogrim
ID: 39618157
Sorry  routinet, I passed it on to a friend and he said he could work with it. Dont be sad a novice like me will have more points to give out
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question