Created
March 14, 2019 14:35
-
-
Save junex/2ca89a1435b442fa9dee4ef3f4fc25a1 to your computer and use it in GitHub Desktop.
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
set password = password('password'); | |
use mysql; | |
update user set Host='%' where User='root'; | |
flush privileges; | |
grant all privileges on *.* to 'user'@'host' with grant option; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment