【发布时间】:2018-02-11 19:13:34
【问题描述】:
我在我的 AWS 账户上创建了一个 Amazon Aurora Postgres 数据库,现在正尝试使用 PgAdmin 连接到它。我输入数据库名称、用户名、密码、主机和端口。当我尝试连接时,我遇到了这个问题。
Unable to connect to server:
could not connect to server: Operation timed out
Is the server running on host "host_name.us-east-2.rds.amazonaws.com" (IP Address) and accepting
TCP/IP connections on port 5432?
我是 Amazon Aurora 的新手,我不确定下一步要连接什么。我阅读了文档,但找不到我要查找的内容。当我尝试使用包含 Django 应用程序的生产服务器连接到它时,我也遇到了同样的错误。
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'dbname',
'USER': 'username',
'PASSWORD': 'password',
'HOST': 'hostname.us-east-2.rds.amazonaws.com',
'PORT': '5432'
}
}
我遇到了类似的问题
django.db.utils.OperationalError: could not connect to server: Connection timed out
Is the server running on host "hostname.us-east-2.rds.amazonaws.com" (IP Address) and accepting
TCP/IP connections on port 5432?
【问题讨论】:
标签: django postgresql pgadmin amazon-aurora