Skip to content

Instantly share code, notes, and snippets.

@abloom
Created November 6, 2009 16:43
Show Gist options
  • Save abloom/228089 to your computer and use it in GitHub Desktop.
Save abloom/228089 to your computer and use it in GitHub Desktop.
sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb -D /opt/local/var/db/postgresql84/defaultdb'
sudo sed -i -e 's/#client_min_messages = notice/client_min_messages = error/' /opt/local/var/db/postgresql84/defaultdb/postgresql.conf
sudo sed -i -e 's/#log_min_messages = warning/log_min_messages = error/' /opt/local/var/db/postgresql84/defaultdb/postgresql.conf
sudo /opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/postgresql84-server.wrapper start
sudo su postgres -c '/opt/local/lib/postgresql84/bin/createuser -s mms'
sudo su postgres -c '/opt/local/lib/postgresql84/bin/createuser -s YOUR_USER_NAME'
/opt/local/lib/postgresql84/bin/createdb mms_development
/opt/local/lib/postgresql84/bin/createdb mms_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment