'Unable to connect to remote PostgreSQL server in Azure Databricks

Error when trying to connect using psycopg2 Error when trying to connect using psycopg2 I'm able to connect to the database from my local machine using the same Python code (works instantly).

Error when trying to connect using cluster terminal using "psql" command Error when trying to connect using cluster terminal

How can I debug what is causing the error and resolve it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source