Skip to content

Instantly share code, notes, and snippets.

@mstfydmr
Created August 2, 2017 16:18
Show Gist options
  • Save mstfydmr/680653aa458cdf291c49adc2d3a58972 to your computer and use it in GitHub Desktop.
Save mstfydmr/680653aa458cdf291c49adc2d3a58972 to your computer and use it in GitHub Desktop.
Linux Mysql Commands
# Create User
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
CREATE USER 'newuser'@'%' IDENTIFIED BY 'password';
# Permissions
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'%';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment