make sure you check iptables on redhat. When I restarted redhat it started iptables and prevented me from accessing mysql.
Connect to MySQL from Amazon VPC
-
24-06-2023 - |
Question
I have two subnets: 1 private , 1 public
The public contains an Ubuntu webserver. The private contains Redhat enterprise with MySQL only (port 3306, 22 open)
I am able to ssh
to Ubuntu then from Ubuntu ssh
to Redhat. But I can't MySQL to Redhat from Ubuntu. It gives me:
ERROR 2003 (HY000): Can't connect to MySQL server on '10.x.x.x.x' (113)
This issue started after I created the image of the instance and created it in the VPC.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow