Last active
September 10, 2015 07:58
-
-
Save FabienSalles/04cfc528cdea66663e6d to your computer and use it in GitHub Desktop.
Autoriser l'accès à un serveur mysql distant
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
| sed -i 's/bind-address.*/bind-address = 0.0.0.0/' /etc/mysql/my.cnf && sudo service mysql restart | |
| UPDATE mysql.user SET Host='%' WHERE Host='localhost' AND User='username'; | |
| FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment