Skip to content

Instantly share code, notes, and snippets.

@joshuakfarrar
Last active August 29, 2015 13:56
Show Gist options
  • Save joshuakfarrar/8847486 to your computer and use it in GitHub Desktop.
Save joshuakfarrar/8847486 to your computer and use it in GitHub Desktop.
zergling:rails-haiti-map zipp$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
server starting
# check my app, 'could not connect to server: Connection refused'
# is pg running? px aux | grep pg says no
zergling:rails-haiti-map zipp$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start --log=derp.txt
server starting
zergling:rails-haiti-map zipp$ cat derp.txt
FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 9.2, which is not compatible with this version 9.3.2.
# had the same problem a week ago http://stackoverflow.com/questions/20754669/how-to-fix-postgres-after-updating-upgrading-brew/21461148#21461148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment