Last active
June 20, 2023 03:23
-
-
Save oliworx/1ce8d0366906a80a0e815784df62ad50 to your computer and use it in GitHub Desktop.
Create a New DB and User in MySQL
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 DATABAESE MYNEWDB; | |
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON MYNEWDB.* TO 'newuser'@'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment