Dial tcp connect: connection refused

I’ve been trying to make a micro service project and when it comes to sending request to a database port , it shows like this . The connection is refusing and i dont know why. Can any of you guys can help me ?

Hi Vijay,

I belive we need alot more info on this, code examples, your docker-compose file (if used) or how you run it.

Its not possible to help you with this little info