Не работает подключение к БД postgresql
Не работает подключение к БД ошибка ниже. Возиожно это не влияет, но: пишу на MacOS, а БД запущена на виртуалке windows 11.
//db.js
const { Sequelize } = require('sequelize')
module.exports = new Sequelize(
'reactNoda',
'postgres',
'qaz324sl',
{
dialect: 'postgres',
host: 'localhost',
port: 5432
}
)
//index.js
const express = require('express');
const sequelize = require('./db')
const PORT = 8000
const app = express()
start = async () => {
try {
//console.log(sequelize)
await sequelize.authenticate()
await sequelize.sync()
app.listen(PORT, () => { console.log( 'server have been started' ) })
}
catch(e) {
console.log(e)
}
}
start()
ошибка:
password authentication failed for user "postgres"