Created
March 8, 2012 22:57
-
-
Save rodrigomaia/2003992 to your computer and use it in GitHub Desktop.
Postgres via macport
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
| ########################################################### | |
| # A startup item has been generated that will aid in | |
| # starting postgresql84-server with launchd. It is disabled | |
| # by default. Execute the following command to start it, | |
| # and to cause it to launch at startup: | |
| # | |
| # sudo port load postgresql84-server | |
| ########################################################### | |
| ---> Installing postgresql84-server @8.4.11_0 | |
| To create a database instance, after install do | |
| sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb | |
| sudo chown postgres:postgres /opt/local/var/db/postgresql84/defaultdb | |
| sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb -D /opt/local/var/db/postgresql84/defaultdb' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment