About
Postgres 9.2 Mac OSX Install
- Install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew install postgres
- First time db initialization
initdb /usr/local/var/postgres -E utf8
- Start Postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
- Create your PG user
createuser -d -P my_user
- Create your database
createdb -U my_user --owner=my_user my_database
- Create your test database
createdb -U my_user --owner=my_user my_database_test
License
MIT license (http://opensource.org/licenses/MIT)