Created
May 24, 2019 05:45
-
-
Save stonecorleone/d88d4c2f4d0978c80ee1c66b5506f8aa to your computer and use it in GitHub Desktop.
Update password Mysql
This file contains hidden or 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
ALTER USER 'root'@'localhost' IDENTIFIED with mysql_native_password; | |
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; |
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'password';