Skip to content

Instantly share code, notes, and snippets.

@floptwo
Last active May 12, 2020 02:31
Show Gist options
  • Save floptwo/2ac44b118b08eb2fc26c8b61df09a926 to your computer and use it in GitHub Desktop.
Save floptwo/2ac44b118b08eb2fc26c8b61df09a926 to your computer and use it in GitHub Desktop.
Change MySQL 5.7 Password and Server authentication plugin for root user
SELECT user,authentication_string,plugin,host FROM mysql.user;
UPDATE mysql.user SET plugin = 'mysql_native_password', authentication_string = PASSWORD('mypassword') WHERE User = 'root';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment