N
N
nluparev2017-10-22 19:40:35
PostgreSQL
nluparev, 2017-10-22 19:40:35

How to authenticate in PostgreSQL using Sequelize?

Unable to authenticate to PostgreSQL using Sequelize.
I use the following config to connect with PostgreSQL

const sequelize = new Sequelize('test_db', 'postgres', 'password', {
  host: 'localhost',
  dialect: 'postgres',

  pool: {
    max: 5,
    min: 0,
    idle: 10000,
  },
});

such a database exists in PostgreSQL.
The login password is correct because I go through them using the CLI
when I run the script, I get the following
59ecc9eb752bc817465320.png
question: what's the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question