EnvoleCommandesSys » Historique » Version 1
Gaston TJEBBES, 10/05/2010 11:16
| 1 | 1 | Gaston TJEBBES | h1. EnvoleCommandesSys |
|---|---|---|---|
| 2 | 1 | Gaston TJEBBES | |
| 3 | 1 | Gaston TJEBBES | h2. Mysql |
| 4 | 1 | Gaston TJEBBES | |
| 5 | 1 | Gaston TJEBBES | Changement du mot de passe de l'utilisateur root de la base de données |
| 6 | 1 | Gaston TJEBBES | <pre> |
| 7 | 1 | Gaston TJEBBES | root@lab12-eole:/var/log# mysql_pwd.py |
| 8 | 1 | Gaston TJEBBES | </pre> |
| 9 | 1 | Gaston TJEBBES | puis rentrez votre mot de passe. |
| 10 | 1 | Gaston TJEBBES | |
| 11 | 1 | Gaston TJEBBES | Connexion à la base de données : |
| 12 | 1 | Gaston TJEBBES | <pre> |
| 13 | 1 | Gaston TJEBBES | mysql -uroot -p<mot de passe> |
| 14 | 1 | Gaston TJEBBES | </pre> |
| 15 | 1 | Gaston TJEBBES | NB : pas d'espace entre les options et les valeurs. |
| 16 | 1 | Gaston TJEBBES | |
| 17 | 1 | Gaston TJEBBES | Renvoyer l'ensemble de la base de données dans un fichier /root/bdd-snapshot.sql : |
| 18 | 1 | Gaston TJEBBES | <pre> |
| 19 | 1 | Gaston TJEBBES | mysqldump -uroot -p<motdepasse> <nomdelabase> > /root/bdd-snapshot.sql |
| 20 | 1 | Gaston TJEBBES | </pre> |