Skip to content

Instantly share code, notes, and snippets.

@keit
Last active March 26, 2016 03:50
Show Gist options
  • Save keit/a537dab2d390a4b0ffdc to your computer and use it in GitHub Desktop.
Save keit/a537dab2d390a4b0ffdc to your computer and use it in GitHub Desktop.
How to fix postgres after installed from homebrew on osx
1) launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
2) rm -rf /usr/local/var/postgres
3) initdb /usr/local/var/postgres -E utf8
4) createdb
5) launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment