LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-05-2008, 02:10 AM   #1
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Rep: Reputation: 15
How can I extract the databases from raw files?


My hard drive was dying, so the only way to grab my MySQL databases was to backup the entire folder.
I've got all the databases under the mysql folder, but now I'm at a loss as to what I should do with them.

I've reinstalled the OS on a new hard drive, should I reinstall MySQL and simply paste the files in the same location they were previously?
Or is there an alternative (better) way to do this?
 
Old 05-05-2008, 03:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I've reinstalled the OS on a new hard drive, should I reinstall MySQL and simply paste the files in the same location they were previously?
Yes assuming that you install mysql the same way as before, so the datadir remains the same.
Quote:
Or is there an alternative (better) way to do this?
Since you didn't use mysqldump to export your databases in sql format you have to use the above method.

Regards
 
Old 05-05-2008, 11:16 AM   #3
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks for the quick reply bathory.
I wasn't able to use mysqldump because it wouldn't run due to mysql.sock errors.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I extract raw sectors from a CD-ROM? pxumsgdxpcvjm Linux - General 2 12-25-2006 09:06 AM
How do I extract raw sectors from a CD-ROM? pxumsgdxpcvjm Linux - Newbie 1 12-25-2006 09:06 AM
Extract body message from raw e-mail rigel_kent Programming 2 06-03-2006 06:07 AM
Flat files vs Databases coolman0stress Programming 5 09-08-2003 09:23 PM
password protecting two files to two different databases on Apache? RKris Linux - Software 0 02-24-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:18 PM.

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