After I install Postgres 12 on my windows machine and try to log in in the command line using: psql
I am prompted for a password. I enter the password that I used during the install, but it is rejected by Postgres with the message:
psql: error: could not connect to server: FATAL: password authentication failed for user "username"
username is actually my windows username.
I have tried:
- uninstalling Postgres with and without deleting the Postgres folder, and then doing a fresh re-install.
- editing the pg_hba file and putting "trust" at the end of every line
- using the windows password
Nothing works. Please help.