'SequelizeConnectionRefusedError errno:-111 ECONNREFUSED

I got following exception on node.js express and how can I troubleshoot it?

{"name":"SequelizeConnectionRefusedError","parent":{"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":6432},"original":{"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":6432}}



Solution 1:[1]

You are getting this exception because your app cannot connect to the database server in localhost and port 6432. Please make sure your database server is up and running on port 6432 in your localhost

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abbas Moharami