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
Solved

MySQL Back Up from  ibdata file

Posted on 2013-10-31
6
333 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 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP - AJAX and MySQL it works only if the value is a number 12 73
PHP: concatenate query 13 79
AWS EC2 & RDS Instance 5 50
mysql query for sum() 3 28
This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …

828 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