Skip to content

Instantly share code, notes, and snippets.

@rming
Created February 23, 2020 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rming/cd016e1650447c5e6c1d40f7ee675d7c to your computer and use it in GitHub Desktop.
Save rming/cd016e1650447c5e6c1d40f7ee675d7c to your computer and use it in GitHub Desktop.
update user password in mysql 5.7
UPDATE mysql.user
SET authentication_string = PASSWORD('root'), password_expired = 'N'
WHERE User = 'root' AND Host = '127.0.0.1';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment