LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-22-2011, 03:19 AM   #1
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Rep: Reputation: 15
Unhappy MySQL database recovery from files


Hi all!

My server crashed due to a HDD failure, but luckily I could somehow retrieve all the files from the HDD and made an .image using dd on my workstation.

Now my question is there someway to retrieve mySQL databases from these files? I hosted about 25 sites and I'm really not to into making them again from 0.

Cheers,
shorto
 
Old 03-22-2011, 03:44 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

It depends on what engine you used. Are they myisam or innodb? If the first then it should be painless to restore them. Have a look at the following links.
http://stackoverflow.com/questions/4...physical-files
http://dev.mysql.com/doc/refman/5.1/...intenance.html
http://www.webhostingtalk.com/showthread.php?t=670578

Also worth mentioning. The fact that you didn't have a backup (I assume you didn't since you don't mention it) means you really should get that put in place as soon as you're up and running again. There are some pretty neat utilities on the internet that you can use to make backup of your databases. As with all good practice, a backup should never be on the same disk/server/location.

Kind regards,

Eric

Last edited by EricTRA; 03-22-2011 at 03:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
recover deleted MySQL database files tommytomato Linux - General 8 09-06-2010 01:25 PM
mysql phpMyAdmin - attach files to database superevilspacemonkey Linux - Software 1 04-24-2009 03:20 PM
Where are the database files for mysql in Centos 5? Anauj0101 Linux - Server 5 02-23-2008 06:39 PM
need to convert text files into mysql database zafar466 Linux - Software 1 08-28-2007 01:53 AM
Mysql - Copying database files. jackster Linux - Software 2 02-03-2005 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration