I'm trying to set up PostgreSQL on Mac, and having some difficulty figuring out my password. I used homebrew to install with brew install postgresql
, which appears to have executed correctly. When I try to start postgreSQL with psql postgres
I am prompted to enter the password for my user account. I never actually set up a password, and my general user account password fails the password authentication. Same with sudo psql postgres
.
I checked to see if I could change the pg_hba.conf
file, but the file either doesn't exist or is not located at /var/lib/postgres/data/pg_hba.conf
. Any thoughts on how to reset my password?