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?
In Homebrew 2.5.7 the installation of postgresql is at /usr/local/Cellar/postgresql and the configuration file is at /usr/local/var/postgres/pg_hba.conf.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With