Created
February 23, 2020 13:03
-
-
Save rming/cd016e1650447c5e6c1d40f7ee675d7c to your computer and use it in GitHub Desktop.
update user password in mysql 5.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04