postgresql - 我无法连接到 rails 中的 postgres amazon rds
问题描述
下面是我的database.yml
development:
adapter: postgresql
encoding: unicode
host: <my_aws_end_url>
database: <my_db_name>
pool: 5432
username: <my_username>
password: <my_password>
我得到的错误如下:
PG::ConnectionBad: could not connect to server: Connection timed out
我已经在 aws 中验证了最终 url,并将我的入站设置为所有流量。我也尝试使用 pgadmin 连接并得到同样的错误。
解决方案
推荐阅读
- flutter - 向 Row() 中的小部件添加具有特定宽度的间距的最有效方法是什么?
- python - 我的python人脸识别项目面临这种类型的错误。摄像头灯亮但不显示摄像头界面
- ios - 核心数据崩溃与方法“hasChanges”
- ios - 检测 UIPageViewController 开始滑动
- c++ - 为什么/unordered_map 和 unordered_set 更慢?
- javascript - 在产品网格视图中为每个产品添加数量字段(ecwid 电子商务)
- php - Vestacp - smpt 电子邮件、mail() 或 swiftmailer 无法使用 php
- google-app-engine - Google App Engine 配额错误,但没有超出配额
- apache-kafka - Kafka 分区日志真的不可变吗?为了使其真正不可变,日志可以与分布式账本集成吗?
- javascript - 有没有办法根据使用路由器做出反应的数组中的单击项目来呈现值?