gpt4 book ai didi

mysql - AWS : Can't connect EC2 instance to RDS instance after configuring security groups

转载 作者:行者123 更新时间:2023-11-29 11:38:29 25 4
gpt4 key购买 nike

启动 MySql RDS t2.micro 实例并相应配置安全组以授予来 self 自己的 IP 和 EC2 实例的公共(public) IP 的访问权限后,我在尝试连接时收到连接超时。连接在本地工作得很好,多可用区设置为“无”,并且 RDS 和 EC2 上的区域完全相同。

我可能遗漏了一些小东西,但我已经阅读了无数文档,现在试图找出它是什么。

One configured to grant local access and the other for EC2

最佳答案

both my own ip and the public ip of my EC2 instance

您应该使用安全组中的私有(private) IP,而不是公共(public) IP。更好的方法是列出 EC2 实例所属的安全组,而不是其 IP 地址。

关于mysql - AWS : Can't connect EC2 instance to RDS instance after configuring security groups,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36237394/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com