Postgres - 连接超时

Postgres - connection timeout

当我尝试连接到我的 postgres 数据库时,我总是收到连接超时错误。例如我想从 pqadmin 连接。你能帮忙吗?

PythonAnywhere 上的 PostgreSQL 数据库受防火墙保护,因此外部计算机无法直接访问它们——您需要使用一种称为 SSH 隧道的东西,它会打开与 PythonAnywhere 的安全 SSH 连接,然后将 Postgres上面的东西。

This help page on the PythonAnywhere site has the details on how to set that up.