MySQL Forums
Forum List  »  General

Re: Hash password for mysql above 5.7.6
Posted by: Peter Brawley
Date: August 27, 2015 04:20PM

1. Before 5.7.6, SET PASSWORD read a non-function-call argument as a hash compatible with the method set in mysql.user.plugin; since, it reads it as plain text and hashes it according to the method listed in mysql.user.plugin.

2. Before 5.7.6 SET PASSWORD was shorthand for …

UPDATE mysql.user SET password=PASSWORD('pswd')
WHERE user='username' AND host='hostname';
FLUSH PRIVILEGES;

Since, 5.7.6, mysql.user.password no longer exists; the function sets mysql.user.authentication_string instead.

3. As of 5.7.6, the function is deprecated: the recommendation is to use Alter User instead.

Seems to me the opaqueness arises mainly from the user-unfriendly contradictions between before & after 5.7.6.

Options: ReplyQuote


Subject
Written By
Posted
Re: Hash password for mysql above 5.7.6
August 27, 2015 04:20PM


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.