Projet

Général

Profil

EnvoleCommandesSys » Historique » Version 3

Gérald Schwartzmann, 12/05/2010 12:31

1 3 Gérald Schwartzmann
h1. [[Développement|"Développement"]]
2 1 Gaston TJEBBES
3 3 Gérald Schwartzmann
h2. EnvoleCommandesSys
4 1 Gaston TJEBBES
5 3 Gérald Schwartzmann
h3. Mysql
6 3 Gérald Schwartzmann
7 1 Gaston TJEBBES
Changement du mot de passe de l'utilisateur root de la base de données
8 1 Gaston TJEBBES
<pre>
9 1 Gaston TJEBBES
root@lab12-eole:/var/log# mysql_pwd.py 
10 1 Gaston TJEBBES
</pre>
11 1 Gaston TJEBBES
puis rentrez votre mot de passe.
12 1 Gaston TJEBBES
13 1 Gaston TJEBBES
Connexion à la base de données :
14 1 Gaston TJEBBES
<pre>
15 1 Gaston TJEBBES
mysql -uroot -p<mot de passe>
16 1 Gaston TJEBBES
</pre>
17 1 Gaston TJEBBES
NB : pas d'espace entre les options et les valeurs.
18 1 Gaston TJEBBES
19 1 Gaston TJEBBES
Renvoyer l'ensemble de la base de données dans un fichier /root/bdd-snapshot.sql :
20 1 Gaston TJEBBES
<pre>
21 1 Gaston TJEBBES
mysqldump -uroot -p<motdepasse> <nomdelabase> > /root/bdd-snapshot.sql
22 1 Gaston TJEBBES
</pre>
23 2 Gaston TJEBBES
24 3 Gérald Schwartzmann
h3. Creole
25 2 Gaston TJEBBES
26 2 Gaston TJEBBES
Pour tester un template creole sans faire de reconfigure :
27 2 Gaston TJEBBES
28 2 Gaston TJEBBES
<pre>
29 2 Gaston TJEBBES
/usr/share/creole/creolecat.py <chemin_vers_le_template> -o <chemin_vers_le_fichier_de_sortie>
30 2 Gaston TJEBBES
</pre>