Why is my connection refused when I try to connect to my DB from my website?
I have a website running react hosted on hostgater which contains a PHP that is simply trying to connect to my DB on neon and return a single line of data from the DB but I get this error:
"<b>Warning</b>: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused".
When I checked my neon dashboard, I can see the connection attempted to be started but was suspended. This is weird because when I run aamps and use the same PHP script I am able to connect with no problems. Is there a config script somewhere that I am missing?
"<b>Warning</b>: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused".
When I checked my neon dashboard, I can see the connection attempted to be started but was suspended. This is weird because when I run aamps and use the same PHP script I am able to connect with no problems. Is there a config script somewhere that I am missing?
