Skip to content

Instantly share code, notes, and snippets.

@trapp
Created December 12, 2012 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save trapp/4266710 to your computer and use it in GitHub Desktop.
Save trapp/4266710 to your computer and use it in GitHub Desktop.
mysql grant remote access
-- Don't forget to replace »password« with a strong password.
create user 'username'@'localhost' identified by 'password';
grant all privileges on *.* to 'username'@'yourip' IDENTIFIED BY 'password' with grant option;
flush privileges;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment