Last active
April 9, 2018 05:18
-
-
Save boywijnmaalen/6f08189cc357c31a3621 to your computer and use it in GitHub Desktop.
Create new DB user and grant local access to a newly created DB
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 DATABASE `<database name>`; | |
CREATE USER '<database user>'@'localhost' IDENTIFIED BY '<password>'; | |
GRANT ALL ON <database name>.* TO '<database user>'@'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment