Last active
August 14, 2017 13:26
-
-
Save peterdalle/57ed9596858ffd05e4a9f8bb58fee04f to your computer and use it in GitHub Desktop.
Grant root access to all MySQL tables, and set new password
This file contains hidden or 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
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'; | |
UPDATE mysql.user | |
SET authentication_string = PASSWORD('root'), password_expired = 'N' | |
WHERE User = 'root' AND Host = '%'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment