Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created March 26, 2024 05:26
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 jasperf/0c09968be1291107f088df840035f098 to your computer and use it in GitHub Desktop.
Save jasperf/0c09968be1291107f088df840035f098 to your computer and use it in GitHub Desktop.
add user with remote ip address to allow access to database on secondary server from main server
CREATE USER 'user'@'10.0.0.3' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON database.* TO 'user'@'10.0.0.3' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment