Solved

MySQL Back Up from  ibdata file

Posted on 2013-10-31
6
323 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
  • 2
  • 2
  • 2
6 Comments
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now