Skip to content

Instantly share code, notes, and snippets.

@mohamm6d
Last active April 24, 2020 18:06
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 mohamm6d/28590ae976b80b09808aa3ca7c4f9d5f to your computer and use it in GitHub Desktop.
Save mohamm6d/28590ae976b80b09808aa3ca7c4f9d5f to your computer and use it in GitHub Desktop.
MYSQL Reset password ubuntu 20
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