Created
August 2, 2017 16:18
-
-
Save mstfydmr/680653aa458cdf291c49adc2d3a58972 to your computer and use it in GitHub Desktop.
Linux Mysql Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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