close

[Solved] Error: connect ECONNREFUSED 127.0.0.1:5432 when connecting with nodejs program

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Error: connect ECONNREFUSED 127.0.0.1:5432 when connecting with nodejs program in JavaScript. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How To Solve Error: connect ECONNREFUSED 127.0.0.1:5432 when connecting with nodejs program?

  1. How To Solve Error: connect ECONNREFUSED 127.0.0.1:5432 when connecting with nodejs program?

    To Solve Error: connect ECONNREFUSED 127.0.0.1:5432 when connecting with nodejs program The netstat doesn't show anything listening at 5432, which is where you've told PostgreSQL to listen. If it's not listening, you can't connect to it. Why isn't it listening? Maybe it's not running — you should check its log files and see what happened.

Solution 1

The netstat doesn’t show anything listening at 5432, which is where you’ve told PostgreSQL to listen. If it’s not listening, you can’t connect to it. Why isn’t it listening? Maybe it’s not running — you should check its log files and see what happened.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment