HELP backing up db on dead machine

This is a discussion on HELP backing up db on dead machine within the MySQL Database forums, part of the Database Forums category; we're having a bit of a problem with one of out machines' hard drives-- which happens to be running ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-27-2008
TheKeith
 
Posts: n/a
Default HELP backing up db on dead machine

we're having a bit of a problem with one of out machines' hard drives--
which happens to be running mysql. It's os x 10.3 server and running
apple's default install of mysql. The mysql server is no longer
operational and we're simply trying to pull our database files from
the drive before we perform a low-level reformat of the bad drive. Can
someone help me locate these files and also, would they have the table
structures embedded along with them so that we could easily recreate
the db structure and records on another machine. Help would be GREATLY
appreciated--thanks!

keith
Reply With Quote
  #2 (permalink)  
Old 03-27-2008
Peter H. Coffin
 
Posts: n/a
Default Re: HELP backing up db on dead machine

On Thu, 27 Mar 2008 07:25:40 -0700 (PDT), TheKeith wrote:
> we're having a bit of a problem with one of out machines' hard drives--
> which happens to be running mysql. It's os x 10.3 server and running
> apple's default install of mysql. The mysql server is no longer
> operational and we're simply trying to pull our database files from
> the drive before we perform a low-level reformat of the bad drive. Can
> someone help me locate these files and also, would they have the table
> structures embedded along with them so that we could easily recreate
> the db structure and records on another machine. Help would be GREATLY
> appreciated--thanks!


Restore from your most recent mysqldump output. You were doing those
regularly, right?

If not, you'll find the data directory listed in your my.cnf file, which
is PROBABLY in /etc/, as a configuration parameter called (oddly enough)
"datadir". So long as you are copying ALL the files off and reinstalling
*exactly* the same version of MySQL that you had before, you've got a
pretty good chance of getting it operational again. But this isn't the
right way to back up MySQL regularly, so once you've got the thing
recovered, you're going to schedule regular mysqldump runs, aren't you?

--
51. If one of my dungeon guards begins expressing concern over the conditions
in the beautiful princess' cell, I will immediately transfer him to a
less people-oriented position.
--Peter Anspach's list of things to do as an Evil Overlord
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0