Jump to content

mysql_connect client doesnt support authentication protocol requested by server


Recommended Posts

I was told this was because of the new hashing algorithm in mysql after version 4.1

 

so I entered this query

 

SET PASSWORD FOR bommobco_cwbtest@siteip = OLD_PASSWORD('mypassword');

 

and I get this error

 

#1044 - Access denied for user 'bommobco'@'localhost' to database 'mysql'

 

why does it say "user 'bommobco'@'localhost'" when I put bommobco_cwbtest@siteip and database mysql when I clicked on the other database...

 

How can I get this to work?

 

Thanks

Because bommobco is the user you are currently authenticated as.

 

You are trying to change a password on an account, which is not the same as which you are authenticated as, and you do not have sufficient set of administrator privileges to do so.

 

PS. to see the username of the connected user, run query SELECT USER().

or how do I change the password hashing for the user in a certain db?

 

UPDATE mysql.user SET Password=PASSWORD('newpass') WHERE User='bob';
FLUSH PRIVILEGES;

 

Source(s): http://dev.mysql.com/doc/refman/5.0/en/set-password.html, http://dev.mysql.com/doc/refman/5.1/en/password-hashing.html

Firstly, refer to the sources I gave you.

 

Next, try:

SET PASSWORD `bommabco` = PASSWORD('newpass');

 

It seems you don't have permission to change the password.

If that doesn't work, login with the root user and do it - if you don't have root access, contact the DBA.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.