LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 04-08-2006, 06:24 AM   #1
powadha
Member
 
Registered: Nov 2003
Distribution: Debian SID
Posts: 645
Thanked: 0
retreiving mysql db from non booting HDD


[Log in to get rid of this advertisement]
I've got a box that won't boot anymore, trying to find the solution using Knoppix failed since nothing is written to logs that explains the boot failure so that's a dead end.
I'm trying to get the mysql db's from that disk. Is it possible to just mount the drive using an other box and copy them (the drive can still be browsed normally using knoppix) to the new disk?
What would be the location of the db's and is it possible to load them into mysql on the newly installed box (same distro same versions)?

Regards

Last edited by powadha; 04-08-2006 at 07:41 AM..
powadha is offline     Reply With Quote
Old 04-08-2006, 05:19 PM   #2
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: openSUSE, Gentoo
Posts: 267
Thanked: 0
It's possible and fairly simple. Go to :

http://dev.mysql.com/doc/refman/4.1/en/index.html

and peruse section 2.10.3. Mysqldump and import.
leandean is offline     Reply With Quote
Old 04-10-2006, 06:24 AM   #3
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: mepis/debian
Posts: 194
Thanked: 0
where does mysqldump put it's ouput amd in what format? I've run mysqldump --all-databses, but can't find the output files to copy off (assuming it's worked properly)
irvken is offline     Reply With Quote
Old 04-11-2006, 12:14 AM   #4
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: openSUSE, Gentoo
Posts: 267
Thanked: 0
You have to tell mysqldump the file name and location. For example:

$>mysqldump /tmp/'name of file'

The name is your choice. Most people give it a .sql extension for clarity.
leandean is offline  
Tag This Post , , , ,
Reply With Quote

Reply

Bookmarks


Thread Tools

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
Grub - not booting my xp on hdd prabhatsoni Linux - General 10 10-10-2005 09:11 PM
retreiving a range of iterators with an stl container g_goblin Programming 1 09-01-2005 06:50 PM
Trouble booting on new hdd mjkmkk Linux - General 1 08-27-2004 07:23 AM
Booting from a USB HDD - HOW DO I m.westwood-hill Linux - General 2 05-01-2003 02:05 AM
Booting from a USB HDD - HOW DO I m.westwood-hill Linux - Software 0 04-30-2003 05:20 AM


All times are GMT -5. The time now is 03:07 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration