Skip to content

Instantly share code, notes, and snippets.

@dramsay
Created August 1, 2018 12:41
Show Gist options
  • Save dramsay/92dfb59eeb9a43c37c8d6d57ff172253 to your computer and use it in GitHub Desktop.
Save dramsay/92dfb59eeb9a43c37c8d6d57ff172253 to your computer and use it in GitHub Desktop.
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"?
or
psql: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Try:
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