AWS RDS和pgAdmin4:无法连接到服务器:无法连接到服务器:连接超时 [英] AWS RDS and pgAdmin4 : Unable to connect to server: could not connect to server: Connection timed out
问题描述
我试图直接从pgAdmin4操作数据库,但是我无法连接.
I am trying to manipulate db directly from pgAdmin4 but I cannot connect.
我检查并做的是
我阅读了此文档并关注以下内容 https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html#USER_ConnectToPostgreSQLInstance.问题排查
I read this doc and following https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html#USER_ConnectToPostgreSQLInstance.Troubleshooting
并像文档一样输入有关数据库实例的信息.
and input the information about the db instance as the doc does.
但是我无法连接,因此我检查了安全组. VPC安全组就是这样.
However I couldn't connect and I checked the security group. The VPC security group is like this.
我还应该检查什么?我完全不知道该如何解决. 唯一需要注意的是,即使设置了密码,密码的当前值也始终为空.
What else should I check? I totally have no idea how I can fix this. The only concern is the password's current value is always going to be empty even after I set a password.
有人可以帮助我吗?我必须直接连接和操作数据库.
Anyone could help me? I have to connect and manipulate db directly.
推荐答案
您需要创建新的安全组入站规则
- 转到安全组规则"(在连接性和安全性"下)
- 点击默认"安全组项
- 点击操作">编辑入站规则">添加规则"
- 选择...类型:所有流量",来源:我的IP",然后单击保存规则"
这篇关于AWS RDS和pgAdmin4:无法连接到服务器:无法连接到服务器:连接超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!