Created
September 9, 2016 11:39
-
-
Save newmetl/310d1a7a2d48bea6b76298daa8b14bba to your computer and use it in GitHub Desktop.
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
createuser -R -S -L -D -I newusername; | |
psql -d postgres | |
postgres=# alter role newusername LOGIN; | |
postgres=# alter role newusername CREATEDB; | |
postgres=# alter role newusername SUPERUSER; # if needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment