PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > backing up db on dead machine
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
backing up db on dead machine

Réponse
 
LinkBack Outils de la discussion
Vieux 27/03/2008, 16h25   #1
TheKeith
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 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. would be GREATLY
appreciated--thanks!

keith
  Réponse avec citation
Vieux 27/03/2008, 18h44   #2
Peter H. Coffin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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 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. 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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h50.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07723 seconds with 10 queries