title: ERROR 2005 (HY000): Unknown MySQL server host in aws
body: <p>I have created an e-commerce site in angular js. And I need to host the same in amazon web service.</p>
  
  <p>So inorder to host the same I created an ec2 instance first. Now after that added an rds instance with a security group of VPC by allowing all ip's as outbound and inbound. While creating security group I specified for mysql and for all connection.
  Still after I remotely loged into the instance and try to connect to the end point from rds instance using</p>
  
  <pre><code>mysql -u username -p password -h ********.ap-southeast-1.rds.amazonaws.com:3306
  </code></pre>
  
  <p>I get an error</p>
  
  <pre><code>ERROR 2005 (HY000): Unknown MySQL server host xxxxxxxxx (0)
  </code></pre>
  
  <p>I created the instance from Asia Pacific (singapore) region since I am a resident of india.</p>