简体   繁体   中英

Cannot Connect to Public RDS database

在此处输入图片说明

在此处输入图片说明

As you can see from the images above, I have set my database to public access. Whenever I attempt to connect to it using the endpoint provided by RDS, it hangs up. Any ideas as to why?

I'm pretty sure you forgot about inbound rule. Here the documentation says

When you create a security group, it has no inbound rules. Therefore, no inbound traffic originating from another host to your instance is allowed until you add inbound rules to the security group.

You only show the outbound rule, which I assume you are not setup the inbound rule. What that means that another computer cannot contact port 3306 of your RDS. But your RDS can connect to other computer with port 3306.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM