Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Created December 21, 2019 19:21
Show Gist options
  • Save peteristhegreat/aed7a0532614343e32e147e7979ef3a5 to your computer and use it in GitHub Desktop.
Save peteristhegreat/aed7a0532614343e32e147e7979ef3a5 to your computer and use it in GitHub Desktop.
Set the Root password on MySQL 8.x MySQL 8.0
/*
Given that you can login, run this command. If you need to clear it some other way, check this link.
https://blog.softhints.com/mysql-8-set-or-reset-user-password/
*/
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment