Re: Perte de connexion root sur mysql

deny <[email protected]>
Newsgroups gmane.linux.mandrake.expert.french
Message-ID <[email protected]>
Cécile a écrit :
> Bonjour (re),
> En faisant des essais de zèle sur mysql pour sécuriser le tout, j'ai 
> viré root d'une base, et apparement, ça l'a enlevé de partout, je ne 
> peux plus me connecter via phpmyadmin sur mysql, dans aucune base.
> Comment rétablir root en accès complet sur une base ?
> en ligne de cmde, je suppose, mais comment ?
> J'ai bien mis un autre user que root en accès complet, mais 
> manifestement, phpmyadmin ne sait que se logguer en root, et pas avec 
> un autre user !
>  
>  
> Merci
> Cécile
salut
as-tu essayé en console mysql


shell> *|mysql -u root|*
mysql> *|SET PASSWORD FOR 'root'@'localhost' = PASSWORD('nouveau_mot');|*
mysql> *|SET PASSWORD FOR 'root'@'host_name' = PASSWORD('nouveau_mot');|*

ou avec mysqladmin

shell> *|mysqladmin -u root password "nouveau_mot"|*
shell> *|mysqladmin -u root -h host_name password "nouveau_mot"


a+

|*
message-footer.txt (text/plain, 232 B)
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.