Reputation: 489
I have created an MySQL RDS instance with VPC. Now i am trying to connect to that RDS instance from my Ubuntu 12.04 machine using MySQL client by following code:
mysql -u uname -h test.c6tjb4nxvlri.us-west-2.rds.amazonaws.com -P 3306 -p
But i am getting this error:
ERROR 2003 (HY000): Can't connect to MySQL server on 'test.c6tjb4nxvlri.us-west-2.rds.amazonaws.com' (110)
I searched about this error and everywhere solution came out like
I tried everything but still same error occures. Any explanations?
Upvotes: 2
Views: 2946
Reputation: 11
My problem was with the Subnet and this comment helped me to identify my subnet was private.
After the identification that it was private, converting it into a public one solved my problem and it helped me. I was banging my head on this problem for the full day!!!
Upvotes: 1
Reputation: 1708
When you use TCP/IP SSH Tunneling, request traffic will send through EC2 instance to RDS DB instance.
HTH.
Upvotes: 0
Reputation: 489
The problem was in subnet. Subnet that you created must be publicly accessible.
Upvotes: 2