skip to Main Content

As the question asked, I can’t connect to my RDS instance when executing the below command

mysql -h [hostname] -u root -P 3306 -p

It shows Error 10060 while trying to connect an amazon mysql rds

Refer below for my setup

RDS Setting

Updated Security group setting

VPC Setting

RDS Subnet setting

VPC Resource map

I tried every solution possible that I found on the damn google and not a single one works. 🙁

2

Answers


  1. I’m assuming your infrastructure for your rds is something like this:

    enter image description here

    Taking that into account:

    And finally, check that the AWS firewall or any issue from your access to the network is not causing any inconvenience. You can achieve this either by using another device or by removing any VPN or proxy that you have associated.

    Login or Signup to reply.
  2. Your RDS subnet group currently includes all 4 subnets: 2 public and 2 private. You need to include only the public subnets with Internet gateway routing. Please remove the private subnets and attempt to connect again.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search