Can't connect to the server in local environment

Hello, After running npm run develop I got this error:

> strapispnsors@0.1.0 develop
> strapi develop

[2022-03-20 02:02:35.443] debug: ⛔️ Server wasn't able to start properly.
[2022-03-20 02:02:35.444] error: connect ECONNREFUSED
Error: connect ECONNREFUSED
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1133:16)

Can you advise on how to resolve this?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @,

The ECONNREFUSED is coming from the database, it’s refusing the connection for some reason. The most possible reasons for this are wrong user/password, lack of database permissions or unavailable Database instance.