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

Поиск
Список
Период
Сортировка
От Reid Thompson
Тема Re: Why password authentication failed for user "postgres"?
Дата
Msg-id a1d7e88190ce75db9fc0f1e9d4325ada9c03a046.camel@nc.rr.com
обсуждение исходный текст
Ответ на Why password authentication failed for user "postgres"?  (BeginnerC <chuxuec@outlook.com>)
Список pgsql-general
On Sat, 2022-06-04 at 06:32 +0800, BeginnerC 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!

this may work...

switch user to postgres.
$ sudo su - postgres
login to postgres
$ psql 
reset the password for postgres
postgres-# \password





В списке pgsql-general по дате отправления:

Предыдущее
От: BeginnerC
Дата:
Сообщение: Why password authentication failed for user "postgres"?
Следующее
От: Bryn Llewellyn
Дата:
Сообщение: '{"x": 42, "y": null}'::jsonb != '{"x": 42}'::jsonb ... Really?