-
-
Save mohamm6d/28590ae976b80b09808aa3ca7c4f9d5f to your computer and use it in GitHub Desktop.
MYSQL Reset password ubuntu 20
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 systemctl restart mysql | |
use mysql; | |
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; | |
GRANT ALL ON *.* TO 'username'@'localhost'; | |
flush privileges; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment