devWhiz Posted April 19, 2011 Share Posted April 19, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/234193-mysql_connect-client-doesnt-support-authentication-protocol-requested-by-server/ Share on other sites More sharing options...
mens Posted April 19, 2011 Share Posted April 19, 2011 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(). Quote Link to comment https://forums.phpfreaks.com/topic/234193-mysql_connect-client-doesnt-support-authentication-protocol-requested-by-server/#findComment-1203730 Share on other sites More sharing options...
devWhiz Posted April 20, 2011 Author Share Posted April 20, 2011 how do I fix the mysql_connect client doesnt support authentication protocol requested by server error Quote Link to comment https://forums.phpfreaks.com/topic/234193-mysql_connect-client-doesnt-support-authentication-protocol-requested-by-server/#findComment-1203771 Share on other sites More sharing options...
devWhiz Posted April 20, 2011 Author Share Posted April 20, 2011 or how do I change the password hashing for the user in a certain db? Quote Link to comment https://forums.phpfreaks.com/topic/234193-mysql_connect-client-doesnt-support-authentication-protocol-requested-by-server/#findComment-1203774 Share on other sites More sharing options...
mens Posted April 20, 2011 Share Posted April 20, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/234193-mysql_connect-client-doesnt-support-authentication-protocol-requested-by-server/#findComment-1203777 Share on other sites More sharing options...
devWhiz Posted April 20, 2011 Author Share Posted April 20, 2011 #1142 - UPDATE command denied to user 'bommobco'@'localhost' for table 'user' what the fuck man Quote Link to comment https://forums.phpfreaks.com/topic/234193-mysql_connect-client-doesnt-support-authentication-protocol-requested-by-server/#findComment-1203779 Share on other sites More sharing options...
mens Posted April 20, 2011 Share Posted April 20, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234193-mysql_connect-client-doesnt-support-authentication-protocol-requested-by-server/#findComment-1204092 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.