Solved

MySQL Back Up from  ibdata file

Posted on 2013-10-31
6
342 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 51

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
Webinar: Choosing a MySQL HA Solution

Join Percona’s Principal Technical Services Engineer, Marcos Albe as he presents Choosing a MySQL High Availability Solution on Thursday, June 29, 2017 at 10:00 am PDT / 2:00 pm EDT (UTC-7).

 
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 51

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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