Skip to content

Instantly share code, notes, and snippets.

@garyharan
Created February 17, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garyharan/e680b5a22d9b4d76f0f2 to your computer and use it in GitHub Desktop.
Save garyharan/e680b5a22d9b4d76f0f2 to your computer and use it in GitHub Desktop.
When Postgresql complains user does not exist
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