2016-07-14 147 views
0

我试图登录到使用AWS的RDS服务创建的新创建的PostgreSQL数据库实例。无法连接到AWS PostgreSQL实例

这是我一直在运行的命令(我已经绝密敏感信息):

psql \ 
--host=my_aws_end_point \ 
--port=5432 \ 
--username the_username \ 
--password the_password \ 
--dbname=ebdb 

对于我已经允许下面的入站连接实例关联的安全组:

PostgreSQL TCP 5432 
PostgreSQL TCP 5432 My_IP 
PostgreSQL TCP 5432 0.0.0.0/0 All traffic 
All All 0.0.0.0/0 Custom TCP Rule 
TCP 0 0.0.0.0/0 

这是我得到的错误:

psql: could not connect to server: Operation timed out 
Is the server running on host "aws_db_enpoint..." (IP...) and accepting 
TCP/IP connections on port 5432? 

我也试过银行经营其他命令却遇到了同样的问题。

的一个命令,它似乎工作如下:

pg_restore -v -h 'aws_db_enpoint' --port 5432 -U user_name dump.sql 

任何帮助,将不胜感激!

回答

0

我能通过SSH'ing成功连接到我的EB服务器并从那里运行命令。