Created
October 6, 2019 16:16
-
-
Save paveltretyakovru/1e96c60576a8287e634d784ac0801254 to your computer and use it in GitHub Desktop.
Create user with root privilegies
This file contains hidden or 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
# mysql -u root -p | |
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'some_very_complex_password'; | |
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment