PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.database.mysql > database permissions
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
database permissions

Réponse
 
LinkBack Outils de la discussion
Vieux 28/03/2006, 07h37   #1 (permalink)
Dave
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut database permissions

Hello,
I've got databases on one box i have to
transfer to another box, both are running Linux one a Centos4 machine, the
other rh9 i think. I could tar up the /var/lib/mysql directory, but i
was lead to believe that was a bad idea. I don't know the permissions of the
user's and i don't want to give out global permissions. What i was wondering
is there a way i can do a mysqldump on the databases on machine1, which will
drop everything needed to recreate them in to a .sql file, transfer that to
machine2 and then use mysqladmin to load it and have all the settings back
in business? I believe they're both mysql4 installs, though machine1 might
be mysql3.23, not sure.
Thanks a lot.
Dave.


  Réponse avec citation
Vieux 28/03/2006, 21h23   #2 (permalink)
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: database permissions

On Mon, 27 Mar 2006 23:37:21 -0800, Dave <dmehler26@woh.rr.com> wrote:

> is there a way i can do a mysqldump on the databases on machine1, which
> will drop everything needed to recreate them in to a .sql file, transfer
> that to machine2 and then use mysqladmin to load it and have all the
> settings back in business?


The users and privileges are all recorded in the "mysql" database (that
is, a database named "mysql"). You should be able to back this up using
mysqldump on machine1, and restore it on machine2 using the mysql
command-line tool to run the backup as a SQL script.

> I believe they're both mysql4 installs, though machine1 might
> be mysql3.23, not sure.


The schema of the mysql database changes from release to release.
You may need to run the "mysql_fix_privilege_tables" script to upgrade the
schema after you restore it.

See
http://dev.mysql.com/doc/refman/4.1/...ge-tables.html

Regards,
Bill K.
  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 01h40.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07094 seconds with 10 queries