Re: "Failed to connect to Postgres database"

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Marco Ippolito" <ippolito(dot)marco(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: "Failed to connect to Postgres database"
Date: 2019-09-27 11:34:30
Message-ID: 5860c69b-8b16-43b0-ba90-0a0cc7598520@manitou-mail.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marco Ippolito wrote:

> (base) postgres(at)pc:~$ psql --cluster 11/fabmnet -h localhost
> Password for user postgres:
> psql: FATAL: password authentication failed for user "postgres"
> FATAL: password authentication failed for user "postgres"

Did you set a password for the postgres user in that newly created
cluster?
If not, try psql --cluster 11/fabmnet (without -h localhost),
it should connect you without a password,
then set a password with the \password command in psql,
then try again with -h localhost.

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Olivier Gautherot 2019-09-27 12:36:13 Re: Monitor Postgres database status on Docker
Previous Message Luca Ferrari 2019-09-27 10:41:49 Re: pgq is one of the most underrated pg related stuff