Skip to content

Instantly share code, notes, and snippets.

@ateucher
Created April 28, 2017 01:03
Show Gist options
  • Save ateucher/52e00698d09a2d22dbb3d54b7290d803 to your computer and use it in GitHub Desktop.
Save ateucher/52e00698d09a2d22dbb3d54b7290d803 to your computer and use it in GitHub Desktop.
Commands that got postgres (installed via homebrew) running for me:
$ rm -rf /usr/local/var/postgres
$ initdb /usr/local/var/postgres -E utf8
$ pg_ctl -D /usr/local/var/postgres -l logfile start
$ createuser -s postgres
$ python designatedlands.py create_db
From:
http://stackoverflow.com/questions/7975556/how-to-start-postgresql-server-on-mac-os-x
and
http://stackoverflow.com/questions/15301826/psql-fatal-role-postgres-does-not-exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment