dju` a écrit :
Jean-Yves F. Barbier a écrit :Salut liste, j'ai un soucis de password sous mysql, que je ne connais que très peu: create user 'admin@localhost' identified by password 'secret'; renvoie: ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number Quelqu'un peut-il me dépanner? Merci d'avance JYNe faut-il pas utiliser une fonction de chiffrement (cf http://dev.mysql.com/doc/refman/5.0/fr/encryption-functions.html), comme PASSWORD() par exemple ?
J'ai eu un espoir: j'ai fais un SELECT PASSWORD('secret') qui génère bien 41 caractères, contrairement aux fonctions sha() et md5(). Mais si le user est bien créé, le mot de passe n'est pas reconnu à la connection!mysql -uadmin -p renvoie: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
et je n'ai pas oublié le FLUSH PRIVILEGES après la création; j'ai même fait un restart pour être bien sur, mais rien n'y fait:( JY -- Nature, to be commanded, must be obeyed. -- Francis Bacon