Created
June 13, 2018 09:51
-
-
Save jelovac/9afce7c74e50e254d1b870b4d4be9766 to your computer and use it in GitHub Desktop.
Set default root password on Ubuntu MySQL >=5.7
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
/* The new MySQL version on Ubuntu uses socket type authentification, in order to revert to password based use the following */ | |
USE mysql; | |
UPDATE user SET authentication_string = PASSWORD(‘YourPassword’), plugin = ‘mysql_native_password’ WHERE User = ‘root’; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment