Best unofficial Apache Server developers community |
|
So, I just created the Amazon RDS account. And I started an instance of database.
Great! Now I try to connect to it from one of my other EC2 instances.
But nothing works and it just hangs. I tried to ping it, and nothing works either. Nothing happens. Do I need to change some settings?
posted via ServerFault
|
|
 
|
It is "just hanging" as you have not configured the firewall to accept mySQL connections from your other instance, as such the packet is being dropped at the firewall level, to resolve this you need to:
NOTE the source IP for the server will not be your elastic IP (in most cases anyway) you will have an internal ip on the device (ifconfig on linux will show you this). |
![]()  
|
By default RDS does not allow any connection that is not specified within the Security Group (SG). You can allow based on CIDR addressing or by Amazon account number which would allow any EC2 under that account to access it. |
|
 
|
Fixed. Had to grant access to it in the security groups under the DB... |