Why can t I connect to AWS RDS

0 votes

0

I'm trying to connect to my new AWS RDS I just made. I followed the "Setting up for RDS" (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SettingUp.html), then the "Tutorial: Create an Amazon VPC for Use with a DB Instance" (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Tutorials.WebServerDB.CreateVPC.html), then the "Creating a MySQL DB Instance and Connecting to a Database on a MySQL DB Instance" (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_GettingStarted.CreatingConnecting.MySQL.html) but I'm not able to connect to my DB from my computer or my dedicated server on the web.

Following the previous docs, I have this config :

My DB instance DB

The VPC VPC

The subnetworks Subnets

Example of subnetwork's details : SubnetExample

The first security group : Security

The second security group, calling the first one : Security2

For the first security group, I put both my private IP and the IP of my dedicated server, and their ports. I even tried to put 0.0.0.0/0 for SSH and TCP, it didn't work either.

For the DB instance, I tried to add the two security group instead of only the db-securitygroup, it didn't work. I tried to use a different Port for the DB instance, it didn't work.

With MySQL Workbench or with PDO on my dedicated server, I'm unable to connect to the DB : "SQLSTATE[HY000] [2003] Can't connect to MySQL server on [...]"

Mar 1, 2022 in Others by Edureka
• 13,690 points
568 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Others

0 votes
0 answers

AWS: can't connect to RDS database from my machine

When I tried to debug the code ...READ MORE

Apr 9, 2022 in Others by Kichu
• 19,050 points
745 views
0 votes
1 answer
0 votes
0 answers
0 votes
1 answer

Exporting a table from Amazon RDS into a CSV file

To upload PostgreSQL data to S3, use ...READ MORE

answered Mar 2, 2022 in Power BI by gaurav
• 23,260 points
1,099 views
0 votes
1 answer

Exporting a table from Amazon RDS into a CSV file

Presumably, you're attempting to export data from ...READ MORE

answered Mar 3, 2022 in Others by gaurav
• 23,260 points
2,376 views
0 votes
1 answer

AWS RDS Role type: Master vs Instance

AWS Identity and Access Management (IAM) is ...READ MORE

answered Mar 15, 2022 in Others by gaurav
• 23,260 points
648 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP