Last active
March 26, 2016 03:50
-
-
Save keit/a537dab2d390a4b0ffdc to your computer and use it in GitHub Desktop.
How to fix postgres after installed from homebrew on osx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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