Создан пользователь testdb1. Выпущено:
postgres=# alter user testdb1 with password 'testdb1';
ALTER ROLE
postgres=#
Затем добавлена запись в pg_hba.conf:
local all testdb1 password (also tried md5)
, но когда я пытаюсь подключиться:
psql -U testdb1 -W
Password for user testdb1: (type in password here)
psql: FATAL: Peer authentication failed for user "testdb1"
Чего мне все еще не хватает ?
Строка я добавил:
local all testdb1 md5
потребность быть ПЕРЕД предсуществовавшей строкой:
local all all peer