Re: Why password authentication failed for user "postgres"?

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: BeginnerC <chuxuec(at)outlook(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why password authentication failed for user "postgres"?
Date: 2022-06-04 16:00:12
Message-ID: CAMkU=1x4awpn554yC0Q6=DyoxaWBsyOC8sCaOOr-CRO0FiY9fg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 3, 2022 at 6:32 PM BeginnerC <chuxuec(at)outlook(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2022-06-04 16:25:55 Re: Window function?
Previous Message Tom Lane 2022-06-04 14:50:31 Re: Window function?