Created
October 30, 2019 15:58
-
-
Save gitDbits/f209b6e749fd22cf42fc7b77838fbe31 to your computer and use it in GitHub Desktop.
Create user mysql terminal
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
| # Create user and credentials | |
| CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'password'; | |
| # Hability privilegies user | |
| GRANT ALL PRIVILEGES ON * . * TO 'new_user'@'localhost'; | |
| # Reload privilegies | |
| FLUSH PRIVILEGES; | |
| # Login new user terminal | |
| mysql -u [nome do usuário]-p | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment