Skip to content

Instantly share code, notes, and snippets.

@ethnt
Created July 23, 2013 02:35
Show Gist options
  • Save ethnt/6059438 to your computer and use it in GitHub Desktop.
Save ethnt/6059438 to your computer and use it in GitHub Desktop.
PostgreSQL
$ brew install postgresql

Do the launchctl stuff that Homebrew says to do.

$ initdb /usr/local/var/postgres
$ createdb whateverthehell
$ psql whateverthehell
# CREATE USER ethan;
# GRANT ALL PRIVILEGES ON DATABASE whateverthehell

If you're using Rails, specify the host in the database.yml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment