Last active
October 24, 2017 21:07
-
-
Save deviousway/673ceba664991ee3af74bde0f56a435c to your computer and use it in GitHub Desktop.
Pgsql user/db creation
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
sudo -u postgres psql | |
sudo -u postgres createuser <username> | |
sudo -u postgres createdb <dbname> | |
sudo -u postgres psql | |
psql=# alter user <username> with encrypted password '<password>'; | |
psql=# grant all privileges on database <dbname> to <username> ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment