Skip to content

Instantly share code, notes, and snippets.

@lequanghuylc
Created January 8, 2020 09:10
Show Gist options
  • Save lequanghuylc/19d451f4bda61129bf045bc39e6a9288 to your computer and use it in GitHub Desktop.
Save lequanghuylc/19d451f4bda61129bf045bc39e6a9288 to your computer and use it in GitHub Desktop.
[command to fix postgresql after suddenly shutdown]
$ brew services stop postgresql
$ rm /usr/local/var/postgres/postmaster.pid # adjust path accordingly to your install
$ brew services start postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment