Created
October 15, 2021 00:16
-
-
Save pacmac/e50aedce34c05be43abe081046162688 to your computer and use it in GitHub Desktop.
Set native password for mysql connection & allow root connection from any ip (allowed by firewall)
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
; allow root access from any host | |
GRANT ALL ON *.* to 'root'@'%' IDENTIFIED BY 'your-password-here'; | |
; switch to native passwords | |
update mysql.user set plugin = 'mysql_native_password' where User='root'; | |
; apply changes | |
Flush privileges; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment