Skip to content

Instantly share code, notes, and snippets.

@lukmdo
Created December 10, 2009 21:46
Show Gist options
  • Save lukmdo/253713 to your computer and use it in GitHub Desktop.
Save lukmdo/253713 to your computer and use it in GitHub Desktop.
PostgreSQL postInstall
To create a database instance, after install do
sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb
sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment