Connect to Azure Database for PostgreSQL flexible server from SQL Shell

Vidar 21 Reputation points
2021-08-10T15:14:41.003+00:00

hi
I'm trying to connect to my postgres flexible server from my office PC using PSQL shell. That's it - nothing complex, just complete beginner stuff here! I won't even get onto Navicat here...

When I get to the enter username: and press return, I get this error:

error: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "foo-flex-server.postgres.database.azure.com" (23.38.145.57) and accepting TCP/IP connections on port 5432?

I have added my IP of my office/dev PC computer to the whitelist too, but this doesn't seem to have changed anything.

Don't know where to start with this one. Any ideas?

Azure Database for PostgreSQL
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.