문제

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.

도움이 되었습니까?

해결책

make sure you check iptables on redhat. When I restarted redhat it started iptables and prevented me from accessing mysql.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top