Created
November 15, 2013 14:24
-
-
Save bsnux/7485104 to your computer and use it in GitHub Desktop.
Create PostgreSQL user and DB
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
#!/bin/bash | |
# Next command will ask you for entering username/password | |
sudo -u postgres createuser -P | |
sudo -u postgres createdb mydb -O myuser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment