Re: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Posted by: Reto Hersiczky
Date: May 08, 2005 09:07AM

MySQL's password hashing has been changed since mysql 4.1 (41 bytes instead of 16 bytes length)

PASSWORD(), GRANT, and SET PASSWORD generate long hashes unless the server was started with the --old-passwords option. That option forces the server to generate short password hashes instead.

There are two solutions:

a) Start mysqld_safe with additional option --old-passwords.
You may then set passwords as usual with:
mysql> SET PASSWORD FOR 'apache'@'localhost' = PASSWORD('foo');

or b) Use the "OLD_" key to set passwords:
mysql> SET PASSWORD FOR 'apache'@'localhost' = OLD_PASSWORD('foo');

http://www.infocopter.com/know-how/geek-problems/index.html#1030
http://dev.mysql.com/doc/mysql/en/Password_hashing.html
http://dev.mysql.com/doc/mysql/en/Old_client.html

Options: ReplyQuote


Subject
Written By
Posted
Re: Client does not support authentication protocol requested by server; consider upgrading MySQL client
May 08, 2005 09:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.