D
D
demegorych2022-03-06 16:47:04
PostgreSQL
demegorych, 2022-03-06 16:47:04

How to solve psql: error: failed to connect to server 'localhost' (::1)?

Good afternoon, I installed PostgreSQL, but an error occurs during authorization:

C:\Users\Admin>psql v-
Пароль пользователя Егор:
psql: ошибка: подключиться к серверу "localhost" (::1), порту 5432 не удалось: ВАЖНО:  пользователь "Егор" не прошёл проверку подлинности (по паролю)

Immediately, an important detail, earlier the Windows account was called Egor, now Admin, and more importantly, I did not replace all the matches in the registry, since there are a million of them, but I installed PostgreSQL after renaming.
Reinstalled 2 times, password 100% correct. I also tried to change the user on the advice, but it did not help either.
6224bb39c5be5637301815.png

Can you please tell me what else to try?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2022-03-06
@demegorych

If a freshly installed postgres, try psql -U postgres, because the installer does not create an account with your name in postgres itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question