Created
September 10, 2018 17:26
-
-
Save nqthqn/e6d4f453bf4bc403dfa6eff49c97c5f2 to your computer and use it in GitHub Desktop.
Create database with user, postgresql
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
-- after running psql | |
CREATE DATABASE yourdbname; | |
CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass'; | |
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment