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

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


It turns out it is not that hard. Do these steps:

  1. Go to EC2 Dashboard
  2. Go to Security Groups tab
  3. Select and only select the RDS database security group. You'll see the security group detail at the bottom
  4. Click Inbound tab
  5. Click Edit button
  6. Add Type:MYSQL/Aurora;Protocol:TCP;Range:3306;Source:0.0.0.0/0

Steps


MAKE SURE PUBLIC ACCESSIBILITY IS SET TO YES

This is what I spent the last 3 days trying to solve...

Instructions to change Public Accessibility


Accept traffic from any IP address

After creating an RDS instance my security group inbound rule was set to a specific IP address. I had to edit inbound rules to allow access from any IP address.

  • "Security group rules"
  • Select a security group
  • Click "Inbound Rules"
  • Click "Edit Inbound Rules"
  • Under "Source" Select the Dropdown and click "Anywhere"
  • ::0 or 0.0.0.0/0 Should appear.
  • Click "Save Rules"