无法使用 pgAdmin 访问 RDS 上的 Db 实例
Can't access the Db instance on RDS using pgAdmin
我在 Create DB instance section, then I tried to connect to it using pgAdmin according to what is mentioned in Connecting to a DB Instance Running the PostgreSQL Database Engine section.
上使用 easy create 在 RDS 上创建了一个数据库实例
当我在 PgAdmin 上创建服务器时,出现了这个错误:
Unable to connect to server:
Could not connect to server: Connection timed out (0x0000274C/10060)
Is the server running on host "xxxxxxxxxxxx" (xxx.xxx.xxx.xxx) and accepting
TCP/IP connections on port 5432?
我检查了文档中的 Troubleshooting Connections to Your PostgreSQL Instance,但我配置得很好。
Db实例配置如下:
我发现了一个类似的问题 PGAdmin III cannot connect AWS RDS 并且提到的答案没有解决我的问题。
有没有人知道如何解决这个问题?
您的屏幕截图显示 入站 到数据库的流量只允许来自安全组 (SG) sg-1fe9297e
。与数据库实例使用的 SG 相同。
因此您需要确保pgAdmin
为运行的实例也使用相同的SG并且在相同的VPC中。
但是,如果您尝试从 AWS 外部连接,则需要修改 SG 以允许 互联网流量。最好限制在你的 work/home IP address/range.
我在 Create DB instance section, then I tried to connect to it using pgAdmin according to what is mentioned in Connecting to a DB Instance Running the PostgreSQL Database Engine section.
上使用 easy create 在 RDS 上创建了一个数据库实例当我在 PgAdmin 上创建服务器时,出现了这个错误:
Unable to connect to server:
Could not connect to server: Connection timed out (0x0000274C/10060)
Is the server running on host "xxxxxxxxxxxx" (xxx.xxx.xxx.xxx) and accepting TCP/IP connections on port 5432?
我检查了文档中的 Troubleshooting Connections to Your PostgreSQL Instance,但我配置得很好。
Db实例配置如下:
我发现了一个类似的问题 PGAdmin III cannot connect AWS RDS 并且提到的答案没有解决我的问题。
有没有人知道如何解决这个问题?
您的屏幕截图显示 入站 到数据库的流量只允许来自安全组 (SG) sg-1fe9297e
。与数据库实例使用的 SG 相同。
因此您需要确保pgAdmin
为运行的实例也使用相同的SG并且在相同的VPC中。
但是,如果您尝试从 AWS 外部连接,则需要修改 SG 以允许 互联网流量。最好限制在你的 work/home IP address/range.