Re: Why password authentication failed for user "postgres"? - Mailing list pgsql-general

From Jeff Janes
Subject Re: Why password authentication failed for user "postgres"?
Date
Msg-id CAMkU=1x4awpn554yC0Q6=DyoxaWBsyOC8sCaOOr-CRO0FiY9fg@mail.gmail.com
Whole thread Raw
In response to Why password authentication failed for user "postgres"?  (BeginnerC <chuxuec@outlook.com>)
List pgsql-general
On Fri, Jun 3, 2022 at 6:32 PM BeginnerC <chuxuec@outlook.com> wrote:
Hello everyone,
I am a newbie to the postgres,when I use the psql to connect to the postgres,a error message printed:
These command list like this:

psql -U postgres
Password for user postgres:postgres
postgreSQL: password authentication failed for user "postgres"

How to solve this problem?
Thanks in advance!

The password you type should not be showing up as you type it, which is what you appear to be showing above.  Also, 'postgres' is a horrible password, you might as well configure 'trust' authentication if you are going to use that as a password.

Look in the db server's log file for a (possibly) more detailed error message.

Cheers,

Jeff

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Window function?
Next
From: "David G. Johnston"
Date:
Subject: Re: Window function?