Created
September 7, 2011 15:34
-
-
Save sbeam/1200891 to your computer and use it in GitHub Desktop.
create postgres DBs for Rails proj, OSX
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
| sbeam@pris ~/Sites/parallaxp]$ psql -U postgres -c "CREATE DATABASE parallaxp_dev" | |
| Password for user postgres: | |
| CREATE DATABASE | |
| sbeam@pris ~/Sites/parallaxp]$ psql -U postgres -c "CREATE USER parallaxp WITH PASSWORD 'xxxxxxxxxx'" | |
| Password for user postgres: | |
| CREATE ROLE | |
| sbeam@pris ~/Sites/parallaxp]$ psql -U postgres -c "CREATE DATABASE parallaxp_test OWNER parallaxp" | |
| Password for user postgres: | |
| CREATE DATABASE | |
| sbeam@pris ~/Sites/parallaxp]$ psql -U postgres -c "ALTER USER parallaxp CREATEDB" | |
| Password for user postgres: | |
| ALTER ROLE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment