Skip to content

Instantly share code, notes, and snippets.

@ugened47
Created December 16, 2019 10:43
Show Gist options
  • Save ugened47/69420c4f4f616bc6e92d2b8d7d5fdcff to your computer and use it in GitHub Desktop.
Save ugened47/69420c4f4f616bc6e92d2b8d7d5fdcff to your computer and use it in GitHub Desktop.
The common reason for this has something to do with shut down. When you shut down your PC or terminate your console(like Terminal in Mac) with your local server that using pg open, the error will occur.
As this https://stackoverflow.com/a/21420719/10738100 says, first try to remove PID file.
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