No connection could be made because the target machine actively refused it

Hi Team,

I using grafana in the same server and trying to connect a SQL database . While trying to configure the new datasource I’m getting the following error

No connection could be made because the target machine actively refused it.
Kindly help me to resolve this issue

Can you connect to the SQL server from the Grafana machine using a command-
link SQL client using the same username / password as you’re putting into
Grafana?

Antony.

Sure… I will try and let you know if I faced any issue.