amazon-web-services - AWS RDS 和 pgAdmin4 : Unable to connect to server: could not connect to server: Connection timed out

标签 amazon-web-services amazon-rds

我正尝试直接从 pgAdmin4 操作数据库,但无法连接。

我检查和做的是

我阅读了这份文档并关注了 https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html#USER_ConnectToPostgreSQLInstance.Troubleshooting

并像文档一样输入有关数据库实例的信息。

enter image description here

但是我无法连接,我检查了安全组。 VPC安全组是这样的。

this

我还应该检查什么?我完全不知道如何解决这个问题。 唯一担心的是,即使我设置了密码,密码的当前值也始终为空。

enter image description here

谁能帮帮我?我必须直接连接和操作数据库。

最佳答案

您需要创建一个新的安全组入站规则

  • 转到“安全组规则”(在“连接性和安全性”下)
  • 点击“默认”安全组项
  • 点击“操作”>“编辑入站规则”>“添加规则”
  • 选择...类型:“所有流量”,来源:“我的 IP”,然后点击“保存规则”

关于amazon-web-services - AWS RDS 和 pgAdmin4 : Unable to connect to server: could not connect to server: Connection timed out,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54311978/

相关文章:

amazon-web-services - AWS CodeDeploy 在通过 AutoScaling 部署时覆盖现有文件

sql - AWS RDS PostgreSQL 错误 "remaining connection slots are reserved for non-replication superuser connections"

ASP.NET 应用程序在 AWS EC2 t2.micro 上性能下降

amazon-web-services - 使 AWS RDS 可通过 Lambda 函数访问

mysql - 如何更改 AWS RDS 上的 group_concat_max_len

amazon-web-services - 将 Aurora DB 从一个 VPC 迁移到另一个

postgresql - 在 AWS RDS Postgres 上,如何进行字典和无重音全文搜索?

amazon-web-services - 当搜索查询返回超过 10000 个文档时,如何在 Elasticsearch 中跳转到最后一页

node.js - 如何在Linux AWS上重新启动nodejs服务器

java - 轮询时 AWS SWF 决策者 'java.net.SocketTimeoutException: Read timed out'