Re: Hash password for mysql above 5.7.6
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.
Subject
Written By
Posted
September 01, 2015 08:44AM
September 01, 2015 11:25AM
Re: Hash password for mysql above 5.7.6
August 27, 2015 04:20PM
September 03, 2015 05:49AM
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.