Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aquasmit/6fe4cf124e7a40c0d08bb6d2940dd095 to your computer and use it in GitHub Desktop.
Save aquasmit/6fe4cf124e7a40c0d08bb6d2940dd095 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