I have a newly created Linux Amazon Linux EC2 instance and an Ubuntu instance.
And both instances try to connect to the same RDS.
The settings of both instances are exactly the same. Security groups and VPCs are the same. Only linux images are different.
But, Amazon Linux instance can't connect to RDS instance. but ubuntu instance can.
What difference made this result?
I tried to connect with this command:
mysql -h <host> -u <user> -p
And on Amazon Linux instances, I get the following results:
ERROR 2003 (HY000): Can't connect to MySQL server on '<host>' (110)