Can't log in to local postgresql database from grafana instance

Hello,

I am getting the following error message when adding as a datasource.

dial tcp 127.0.0.1:5432: connect: connection refused

I am trying to connect to postgresql database on the following host: localhost:5432. I have no problem doing so from Pgadmin 4 for instance. I already reconfigured pg_hba.conf and postgresql.conf files to allow broader access to the database.

I am finding very little ressourced online on this particular issue.

1 Like

I have the exact same problem at my Windows10.
I reconfigured pg_hba.conf and postgresql.conf files to allow broader access to the database
I have remembered to restart the server after new config
I have tried with closing my firewall completely.