Database - Test connection work but connection fails

Answered

I configured a connection to a remote db via ssh
I worked for a while but now it stopped working
Test connection still works but why I try to execute queries I get this error:

Connection to <db_name> failed.
[08001] Connection to localhost:43116 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

what is localhost:43116 ? and how is it that test connection works but the real connection doesn't?

1
4 comments

It seems that restarting the IDE fixed the problem, but I would like to know why this happened 

4

i had a similar experience today. I noticed that if the internet connection goes out, then datagrip might have this odd error appear when the connection comes back. Restarting datagrip does solve the problem, but it would be nice if the application just auto recovered from the failure instead of making me shut down the app

1
Avatar
Alexandre Rayes

Are there any updates on this issue?

It happens to me all the time!

0

There is an issue DBE-5294 you can track and vote for.

0

Please sign in to leave a comment.