【问题标题】:pgAdmin is throwing Error saving properties unable to connect server timeout expired connecting to Postgresql in AWS LightsailpgAdmin 抛出错误保存属性无法连接服务器超时已过期连接到 AWS Lightsail 中的 Postgresql
【发布时间】:2021-01-10 08:17:44
【问题描述】:

我在 AWS Lightsail 中有一个 Linux 实例,并且在我的 LightSail 托管 Linux 服务器上启动了一个 PostgreSQL 数据库。在我的本地 Windows 10 机器上,我也有一个 Postgresql 服务器。当我尝试按照此处描述的步骤连接到 Lightsail 上的 AWS Postgresql 服务器时:

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-to-your-postgres-database

在我的 pgAdmin 上(我的 pgAdmin 充当客户端,而我在 AWS 上拥有的 Postgresql 数据库是服务器),我看到以下错误消息:

Error saving properties
Unable to connect to the server:

timeout expired

请注意,我的数据库由 Lightsail 托管,不是由 AWS RDS 托管。

【问题讨论】:

    标签: postgresql timeout pgadmin-4 amazon-lightsail


    【解决方案1】:
    1. 在 SSH 隧道选项卡下将 SSL 隧道与您的 ip 和 pem 文件一起使用
    2. 在连接用户 ip 127.0.0.1 下使用您的 postgres 用户名和密码。

    【讨论】:

    • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2023-03-17
    • 2020-06-17
    • 1970-01-01
    • 1970-01-01
    • 2021-09-17
    • 2019-10-08
    • 2020-12-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多