Connect to MySQL EC2 Instance outside of VPC

Posted by Brian W on Server Fault See other posts from Server Fault or by Brian W
Published on 2013-10-21T14:56:48Z Indexed on 2013/10/21 15:55 UTC
Read the original article Hit count: 239

Filed under:
|
|
|

I have a VPC setup with a few EC2 instances inside. I'm attempting to connect to a MySQL database on an EC2 instance outside the VPC, with no luck.

I have the security groups on the VPC EC2 instances set to outbound 0.0.0.0/0 which I assumed would let it connect to any outbound connection. I also followed a tutorial on creating a NAT, but wasn't exactly sure how to use it to connect to an external database.

In any case, if anyone has experience and knows the proper way to connect to a database outside the VPC, it would be greatly appreciated!

© Server Fault or respective owner

Related posts about mysql

Related posts about amazon-ec2