Gentoo Archives: gentoo-user-fr

From: Jean-Philippe CARUANA <jean-philippe.caruana@×××××××.fr>
To: gentoo-user-fr@l.g.o
Subject: Re: [gentoo-user-fr] enlever à fond mysql
Date: Sun, 17 Oct 2004 11:56:50
Message-Id: 41727F55.7020002@wanadoo.fr
In Reply to: Re: [gentoo-user-fr] enlever à fond mysql by Cedric Krier
1 Cedric Krier wrote:
2 > On 16/10/04 16:04 +0000, Jean-Philippe CARUANA wrote:
3 >
4 > As-tu essaye de remplacer mephisto par localhost ?
5
6 oui : ca donne
7 bash-2.05b# /usr/bin/mysqladmin -u root -h localhost password poeutpoeut
8 /usr/bin/mysqladmin: connect to server at 'localhost' failed
9 error: 'Access denied for user: 'root@localhost' (Using password: NO)'
10
11 >>>>suite à une (très) mauvaise config de mysql (je me retrouve bloqué au
12 >>>>niveau des droits,
13 >>>>n'arrive plus à me connecter meme avec root), j'ai décidé d'enlever
14 >>
15 >>completement mysql pour
16 >>
17 >>>>repartir à 0, sur des bases saines
18 >>
19 >>>rm -rf /var/lib/mysql
20 >>
21 >>merci, c'est nickel !
22 >>
23 >>par contre, pour l'install, je dois faire
24 >>
25 >>bash-2.05b# ebuild
26 >>/var/db/pkg/dev-db/mysql-4.0.20-r1/mysql-4.0.20-r1.ebuild config
27 >> * Press ENTER to create the mysql database and set proper
28 >> * permissions on it, or Control-C to abort now...
29 >>
30 >>Preparing db table
31 >>Preparing host table
32 >>Preparing user table
33 >>Preparing func table
34 >>Preparing tables_priv table
35 >>Preparing columns_priv table
36 >>Installing all prepared tables
37 >>
38 >>PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
39 >>To do so, start the server, then issue the following commands:
40 >>/etc/init.d/mysql start (you have to start the server first!)
41 >>/usr/bin/mysqladmin -u root -h mephisto password 'new-password'
42 >>/usr/bin/mysqladmin -u root password 'new-password'
43 >>
44 >>j'essaye ces commandes, mais voia que j'ai des erreurs :
45 >>
46 >>bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
47 >>/usr/bin/mysqladmin: connect to server at 'mephisto' failed
48 >>error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
49 >>MySQL server'
50 >>bash-2.05b# /usr/bin/mysqladmin -u root password ni=eau00
51 >>bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
52 >>/usr/bin/mysqladmin: connect to server at 'mephisto' failed
53 >>error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
54 >>MySQL server'
55 >>
56 >>une idée ?
57 >>
58 >>--
59 >>Jean-Philippe Caruana
60 >>http://enstimac.fr/~caruana/
61 >>
62 >>--
63 >>gentoo-user-fr@g.o mailing list
64 >
65 >
66
67
68 --
69 Jean-Philippe Caruana
70 http://enstimac.fr/~caruana/
71
72 --
73 gentoo-user-fr@g.o mailing list

Replies

Subject Author
Re: [gentoo-user-fr] enlever à fond mysql Cedric Krier <ced@×××××××××××.org>