Created
February 17, 2015 14:17
-
-
Save garyharan/e680b5a22d9b4d76f0f2 to your computer and use it in GitHub Desktop.
When Postgresql complains user does not exist
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
This can happen when active directory or someone else installed postgresql without proper right like a sudo brew install postgres instead of a brew install postgres. | |
To fix you can entirely destroy the db and recreate it with your user: | |
rm -rf /usr/local/var/postgres && initdb /usr/local/var/postgres -E utf8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment