Я не знаю, почему я получил это сообщение об ошибке:
DB authentication failed:
SequelizeConnectionError: Ident authentication failed for user "smemamian"
at connection.connect.err (/home/sunyar/API/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:108:24)
вывод командной строки \l
:
postgres=> \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
sunyar | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres+
| | | | | sunyardb=CTc/postgres+
| | | | | smemamian=c/postgres
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
Моя переменная соединения в БД:
DB_CONNECTION_URL = 'postgres://smemamian:123456@localhost:5432/sunyar'