Last active
September 17, 2017 10:34
-
-
Save zoozalp/7bf3e47db30499593b81bbfe6ba885b8 to your computer and use it in GitHub Desktop.
Create new postgresql user and database
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 <new_username> with PASSWORD '<password>'; | |
CREATE DATABASE <new_database_name>; | |
GRANT ALL PRIVILEGES ON DATABASE <new_database_name> TO <new_username>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment