Skip to content

Instantly share code, notes, and snippets.

@ventsislaf
Last active November 25, 2019 10:06
Show Gist options
  • Save ventsislaf/debebd9e2a3dc3affe2a to your computer and use it in GitHub Desktop.
Save ventsislaf/debebd9e2a3dc3affe2a to your computer and use it in GitHub Desktop.
Postgres error after update

After updating postgres brew formula or OS X, afterwards there could be an error similar to:

psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

One possible fix is:

rm /usr/local/var/postgres/postmaster.pid
brew services restart postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment