Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iflamed/9dc94513eccbb5849e3d to your computer and use it in GitHub Desktop.
Save iflamed/9dc94513eccbb5849e3d 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