I recently installed Postgresql 11, during the installation, there's no step to put password and username for Postgres. Now in pgAdmin 4, I wanted to connect the database to server and it's asking me to input password, and I haven't put any in the first place. Any one knows what's going on. Thank you!
You could access your pgpass.conf via pgAdmin -> Files -> open pgpass.conf
That will give you the path of pgpass.conf
at the bottom of the window (official documentation).
If you then open this file and edit it to your liking.
If that doesn't work, you can:
host all postgres 127.0.0.1/32 trust
before any other lines. (You can ignore comments, lines beginning with #).
Restart the PostgreSQL service from the Services control panel (start->run->services.msc)
connect using psql or pgAdmin4 or whatever you prefer
ALTER USER postgres PASSWORD 'fooBarEatsBarFoodBareFoot'
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments