Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
error: No se puede conectar a la base de datos:, SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432

Estoy tratando de ejecutar el proyecto node JS ejecutando el comando nodemon app.js , pero recibo este error

 "error: Unable to connect to the database:, SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432".

Redis está en funcionamiento, aún se produce este error. No tengo Postgres instalado. Podria esto ser un problema?

 const sequelize = new Sequelize('postgres://manishrana:12345@localhost:5432/tutorial', { logging: false, define: { freezeTableName: true, }, dialect: 'postgres', protocol: 'postgres', /* dialectOptions: { ssl: { require: false, rejectUnauthorized: false, }, trim: true, }, */ pool: { max: 5, min: 0, acquire: 30000, idle: 10000, }, }); const connectToDb = async () => { await sequelize .authenticate() .then((response) => { //console.log(response); logger.info('Connection has been established successfully.'); }) .catch((err) => { logger.error(`Unable to connect to the database:, ${err}`); }); };
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Intente esta forma a continuación para inicializar su conexión de Sequelize

 const sequelize = new Sequelize(url, { dialect: 'postgres', logging, ssl: false, dialectOptions: { ssl: { rejectUnauthorized: false }, }, });
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!