Created
August 6, 2013 05:14
-
-
Save pjan/6162192 to your computer and use it in GitHub Desktop.
Add a new user and accompanying database to postgres
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
sudo -u postgres createuser -D -A -P my_db_user | |
sudo -u postgres createdb -O my_db_user my_db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment