MySQL Forums
Forum List  »  Newbie

Re: Change password the new hash
Posted by: James Mason
Date: March 13, 2015 10:49AM

Hey guys,

This just bit me after restoring a dump from an older MySQL version onto 5.6. The problem is with the User.plugin field indicating the account is using the old-style password hash.

Here are the steps I used to resolve it.

1. Log in as root (mysql -uroot)

2. Run the following statements:

UPDATE mysql.user SET Password = PASSWORD('cheese') WHERE User = 'test' AND Host = 'localhost';
UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User = 'test' AND Host = 'localhost';
flush privileges;

Options: ReplyQuote


Subject
Written By
Posted
Re: Change password the new hash
March 13, 2015 10: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.