Last active
May 12, 2020 02:31
-
-
Save floptwo/2ac44b118b08eb2fc26c8b61df09a926 to your computer and use it in GitHub Desktop.
Change MySQL 5.7 Password and Server authentication plugin for root user
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
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