Created
February 7, 2024 13:30
-
-
Save esedic/85abb69b0e41ec3ee5e6132156927b6d to your computer and use it in GitHub Desktop.
Change MySQL root password
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
sudo mysql | |
// get MySQL user accounts | |
SELECT user,authentication_string,plugin,host FROM mysql.user; | |
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; | |
FLUSH PRIVILEGES; | |
// you should see the change | |
SELECT user,authentication_string,plugin,host FROM mysql.user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment