MySQL 4.1′s New Password Hashing
For some unknown reason I decided to install MySQL 4.1 rather than an older version which is on my server… But none of my PHP scripts would connect to it…
Resulting in the following error:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
What the hell does that mean!?!?
A little digging on the MySQL website produces the following piece of useful information:
The password hashing mechanism was updated in MySQL 4.1 to provide better security and to reduce the risk of passwords being intercepted. However, this new mechanism is understood only by the 4.1 server and 4.1 clients, which can result in some compatibility problems. A 4.1 client can connect to a pre-4.1 server, because the client understands both the old and new password hashing mechanisms. However, a pre-4.1 client that attempts to connect to a 4.1 server may run into difficulties.
Solution:
Use the following:
SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('mypass');
FLUSH PRIVILEGES
Useful links:
5.5.9 Password Hashing in MySQL 4.1
A.2.3 Client does not support authentication protocol
What I'm Doing...
- Am I getting old, is it my stinking cold, or are captcha's getting harder? 1 day ago
- Still feeling pretty rotten but determined to get at least a couple of things off this list today! 1 day ago
- Not really looked properly at EC2 in a long time, but all @lgladdy 's tweets about it are pushing me in that direction again, any good tips? 1 day ago
- Android why can't I create a repition of a calendar event every other week? I can do weekly, every xth of the month but not every other! 2 days ago
- Get a private beta invite for Connect.Me. It's your reputation card for the social web http://t.co/ZWV66HMM 2 days ago
- More updates...


