我想测试一下我的ec2实例是否可以连接到我的数据库。我通过ssh进入我的实例,运行命令: echo '\dS' |psql -h rds-endpoint-xxx.amazonaws.com 5432 我得到的结果是: psql: error: couldnot connect to server: Operation timed out
Is the server running on host "rds
从RDS实例i-78a8df00,我试图连接到RDS实例mysql.************.us-east-1.rds.amazonaws.com.他们都在美国东部地区。我将EC2实例的安全组(sg-*)添加到RDS安全组中,但这没有帮助。它似乎是防火墙/DNS问题,因为它在运行此命令时正在超时:
ubuntu@ip-10-195-189-237:~$ mysql -h mysql.************.us-east-1.rd