OVH Cloud OVH Cloud

[gentoo-user-fr] enlever à fond mysql

6 réponses
Avatar
CARUANA J-P Ext ROSI/SIFAC
bonjour,

suite =E0 une (tr=E8s) mauvaise config de mysql (je me retrouve bloqu=E9 =
au niveau des droits, n'arrive plus =E0 me connecter meme avec root), =
j'ai d=E9cid=E9 d'enlever completement mysql pour repartir =E0 0, sur =
des bases saines

j'ai fait :
# emerge -v unmerge mysql
# emerge -v mysql

mais au moment de lancer la config, il me signale que j'ai d=E9j=E0 =
install=E9 mysql auparavant (et tous les droits, tables et autres sont =
conserv=E9s). J'avais essay=E9 de les trouver, mais impossible de mettre =
la main dessus dans /var.

Quels fichiers effacer pour repartir =E0 0 ?
Sinon, qques conseils pour bien configurer mysql au lancement ?

qu subsidiare : il semble que cela pose pb d'avoir nomm=E9 sa machine =
(mephisto dans mon cas) : on ne sait jamais si on est sur localhost ou =
mephisto : comment faire pour etre tjs avec mephisto ?=20

- si je lance une commande mysql, il me dit que le user@localhost ne =
peux pas faire ceci ou cela.
- si je me connecte avec mysqlcc, je vois 2 serveurs : localhost =
(inaccessible) et mephisto (en lecture simple : je ne peux rien cr=E9er =
dedans, ni user, rien)

--=20
cordialement,=20
Jean-Philippe CARUANA (jpcaruana.ext@francetelecom.com)
tel : 02 38 65 86 38

--
gentoo-user-fr@gentoo.org mailing list

6 réponses

Avatar
Romain GAILLEGUE
Le vendredi 15 octobre 2004 à 14:59 +0200, CARUANA J-P Ext ROSI/SIFAC a
écrit :
bonjour,


Hlo

suite à une (très) mauvaise config de mysql (je me retrouve bloqué au niveau des droits, n'arrive plus à me connecter meme avec root), j'ai décidé d'enlever completement mysql pour repartir à 0, sur des bases saines



rm -rf /var/lib/mysql

j'ai fait :
# emerge -v unmerge mysql
# emerge -v mysql

mais au moment de lancer la config, il me signale que j'ai déjà insta llé mysql auparavant (et tous les droits, tables et autres sont conserv és). J'avais essayé de les trouver, mais impossible de mettre la main d essus dans /var.

Quels fichiers effacer pour repartir à 0 ?
Sinon, qques conseils pour bien configurer mysql au lancement ?

qu subsidiare : il semble que cela pose pb d'avoir nommé sa machine (me phisto dans mon cas) : on ne sait jamais si on est sur localhost ou mephist o : comment faire pour etre tjs avec mephisto ?

- si je lance une commande mysql, il me dit que le ne peux pas faire ceci ou cela.
- si je me connecte avec mysqlcc, je vois 2 serveurs : localhost (inacces sible) et mephisto (en lecture simple : je ne peux rien créer dedans, ni user, rien)



--
Romain GAILLEGUE

--
mailing list
Avatar
Jean-Philippe CARUANA
>>suite à une (très) mauvaise config de mysql (je me retrouve bloqué au niveau des droits,




>>n'arrive plus à me connecter meme avec root), j'ai décidé d'enlever
completement mysql pour
>> repartir à 0, sur des bases saines

rm -rf /var/lib/mysql



merci, c'est nickel !

par contre, pour l'install, je dois faire

bash-2.05b# ebuild
/var/db/pkg/dev-db/mysql-4.0.20-r1/mysql-4.0.20-r1.ebuild config
* Press ENTER to create the mysql database and set proper
* permissions on it, or Control-C to abort now...

Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/etc/init.d/mysql start (you have to start the server first!)
/usr/bin/mysqladmin -u root -h mephisto password 'new-password'
/usr/bin/mysqladmin -u root password 'new-password'

j'essaye ces commandes, mais voia que j'ai des erreurs :

bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
/usr/bin/mysqladmin: connect to server at 'mephisto' failed
error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
MySQL server'
bash-2.05b# /usr/bin/mysqladmin -u root password niêu00
bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
/usr/bin/mysqladmin: connect to server at 'mephisto' failed
error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
MySQL server'

une idée ?

--
Jean-Philippe Caruana
http://enstimac.fr/~caruana/

--
mailing list
Avatar
Cedric Krier
--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 16/10/04 16:04 +0000, Jean-Philippe CARUANA wrote:

As-tu essaye de remplacer mephisto par localhost ?

>>suite à une (très) mauvaise config de mysql (je me retrouve bloqu é au
>>niveau des droits,
>>n'arrive plus à me connecter meme avec root), j'ai décidé d'enlev er
completement mysql pour
>> repartir à 0, sur des bases saines

>rm -rf /var/lib/mysql

merci, c'est nickel !

par contre, pour l'install, je dois faire

bash-2.05b# ebuild
/var/db/pkg/dev-db/mysql-4.0.20-r1/mysql-4.0.20-r1.ebuild config
* Press ENTER to create the mysql database and set proper
* permissions on it, or Control-C to abort now...

Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/etc/init.d/mysql start (you have to start the server first!)
/usr/bin/mysqladmin -u root -h mephisto password 'new-password'
/usr/bin/mysqladmin -u root password 'new-password'

j'essaye ces commandes, mais voia que j'ai des erreurs :

bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
/usr/bin/mysqladmin: connect to server at 'mephisto' failed
error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
MySQL server'
bash-2.05b# /usr/bin/mysqladmin -u root password niêu00
bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
/usr/bin/mysqladmin: connect to server at 'mephisto' failed
error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
MySQL server'

une idée ?

--
Jean-Philippe Caruana
http://enstimac.fr/~caruana/

--
mailing list




--HcAYCG3uE/tztfnV
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBcS0xXUJWHk6k/zERAigkAJwJxn2+RN1yY/w8Z01AkgEuuppVNQCg7+s4
4fRZsLBnipSVbi8HjrrmZNU =l5Lu
-----END PGP SIGNATURE-----

--HcAYCG3uE/tztfnV--
Avatar
Jean-Philippe CARUANA
Cedric Krier wrote:
On 16/10/04 16:04 +0000, Jean-Philippe CARUANA wrote:

As-tu essaye de remplacer mephisto par localhost ?



oui : ca donne
bash-2.05b# /usr/bin/mysqladmin -u root -h localhost password poeutpoeut
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: '' (Using password: NO)'

suite à une (très) mauvaise config de mysql (je me retrouve bloqué au
niveau des droits,
n'arrive plus à me connecter meme avec root), j'ai décidé d'enlever





completement mysql pour

repartir à 0, sur des bases saines





rm -rf /var/lib/mysql



merci, c'est nickel !

par contre, pour l'install, je dois faire

bash-2.05b# ebuild
/var/db/pkg/dev-db/mysql-4.0.20-r1/mysql-4.0.20-r1.ebuild config
* Press ENTER to create the mysql database and set proper
* permissions on it, or Control-C to abort now...

Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/etc/init.d/mysql start (you have to start the server first!)
/usr/bin/mysqladmin -u root -h mephisto password 'new-password'
/usr/bin/mysqladmin -u root password 'new-password'

j'essaye ces commandes, mais voia que j'ai des erreurs :

bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
/usr/bin/mysqladmin: connect to server at 'mephisto' failed
error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
MySQL server'
bash-2.05b# /usr/bin/mysqladmin -u root password niêu00
bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
/usr/bin/mysqladmin: connect to server at 'mephisto' failed
error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
MySQL server'

une idée ?

--
Jean-Philippe Caruana
http://enstimac.fr/~caruana/

--
mailing list








--
Jean-Philippe Caruana
http://enstimac.fr/~caruana/

--
mailing list
Avatar
Cedric Krier
--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


Ce serait pas plutot :

/usr/bin/mysql -u root localhost -p poeutpoeut

On 17/10/04 14:19 +0000, Jean-Philippe CARUANA wrote:
Cedric Krier wrote:
>On 16/10/04 16:04 +0000, Jean-Philippe CARUANA wrote:
>
>As-tu essaye de remplacer mephisto par localhost ?

oui : ca donne
bash-2.05b# /usr/bin/mysqladmin -u root -h localhost password poeutpoeut
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: '' (Using password: NO)'

>>>>suite à une (très) mauvaise config de mysql (je me retrouve bloqu é au
>>>>niveau des droits,
>>>>n'arrive plus à me connecter meme avec root), j'ai décidé d'enl ever
>>
>>completement mysql pour
>>
>>>>repartir à 0, sur des bases saines
>>
>>>rm -rf /var/lib/mysql
>>
>>merci, c'est nickel !
>>
>>par contre, pour l'install, je dois faire
>>
>>bash-2.05b# ebuild
>>/var/db/pkg/dev-db/mysql-4.0.20-r1/mysql-4.0.20-r1.ebuild config
>>* Press ENTER to create the mysql database and set proper
>>* permissions on it, or Control-C to abort now...
>>
>>Preparing db table
>>Preparing host table
>>Preparing user table
>>Preparing func table
>>Preparing tables_priv table
>>Preparing columns_priv table
>>Installing all prepared tables
>>
>>PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
>>To do so, start the server, then issue the following commands:
>>/etc/init.d/mysql start (you have to start the server first!)
>>/usr/bin/mysqladmin -u root -h mephisto password 'new-password'
>>/usr/bin/mysqladmin -u root password 'new-password'
>>
>>j'essaye ces commandes, mais voia que j'ai des erreurs :
>>
>>bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
>>/usr/bin/mysqladmin: connect to server at 'mephisto' failed
>>error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
>>MySQL server'
>>bash-2.05b# /usr/bin/mysqladmin -u root password niêu00
>>bash-2.05b# /usr/bin/mysqladmin -u root -h mephisto password pass
>>/usr/bin/mysqladmin: connect to server at 'mephisto' failed
>>error: 'Host 'mephisto.jpnetwork' is not allowed to connect to this
>>MySQL server'
>>
>>une idée ?
>>
>>--
>>Jean-Philippe Caruana
>>http://enstimac.fr/~caruana/
>>
>>--
>> mailing list
>
>


--
Jean-Philippe Caruana
http://enstimac.fr/~caruana/

--
mailing list




--sdtB3X0nJg68CQEu
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBcmecXUJWHk6k/zERApa3AKCNwXPYEUb8NiFqfwhBr2doetQ4vQCfcvj3
GIYkN9l1xqxtOKumcgGtL0I =TSm4
-----END PGP SIGNATURE-----

--sdtB3X0nJg68CQEu--
Avatar
Jean-Philippe CARUANA
Cedric Krier wrote:
Ce serait pas plutot :

/usr/bin/mysql -u root localhost -p poeutpoeut



j'ai eu une bonne réponse, mais par mysqlcc, impossible de me connecter
à localhost ou mephisto : acces denied...

# mysql
ERROR 1045: Access denied for user: '' (Using password:NO)

# mysql -u root
ERROR 1045: Access denied for user: '' (Using password: NO)

# mysql -u jp (mon user perso)
fonctionne, mais je ne peux creer une BDD :

mysql> create database cebalo;
ERROR 1044: Access denied for user: '@localhost' to database 'cebalo'


les logs donnent :

041008 10:25:39 mysqld started
Warning: Ignoring user change to 'mysql' because the user was set to
'mysql' earlier on the command line





--
Jean-Philippe Caruana
http://enstimac.fr/~caruana/

--
mailing list