Skip to content

Instantly share code, notes, and snippets.

@ryantuck
Created November 8, 2016 21:05
Show Gist options
  • Save ryantuck/bac37b5d9a76158c7ef39dfc5362ebbe to your computer and use it in GitHub Desktop.
Save ryantuck/bac37b5d9a76158c7ef39dfc5362ebbe to your computer and use it in GitHub Desktop.

start up postgres after your computer shits the bed and you don't know why it won't start.

cat /usr/local/var/postgres/postmaster.pid
kill 455      # top line of postmaster.pid output
postgres -D /usr/local/var/postgres    # will output some error but stuff works now (shrug)
psql -U ryan test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment