Skip to content

Instantly share code, notes, and snippets.

@rodrigomaia
Created March 8, 2012 22:57
Show Gist options
  • Save rodrigomaia/2003992 to your computer and use it in GitHub Desktop.
Save rodrigomaia/2003992 to your computer and use it in GitHub Desktop.
Postgres via macport
###########################################################
# 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