Skip to content

Instantly share code, notes, and snippets.

@FabienSalles
Last active September 10, 2015 07:58
Show Gist options
  • Select an option

  • Save FabienSalles/04cfc528cdea66663e6d to your computer and use it in GitHub Desktop.

Select an option

Save FabienSalles/04cfc528cdea66663e6d to your computer and use it in GitHub Desktop.
Autoriser l'accès à un serveur mysql distant
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