title: Unable to connect from local mysql server to AWS RDS db instance
body: <p>I'm trying to import my .sql dump from local machine to AWS RDS db instance using the command:</p>
  
  <pre><code>C:\Program Files\MySQL\MySQL Server 5.5\bin&gt;mysqldump --host=localhost 
  --user=root --password=admin e_learning_system | mysql 
  --host=mydbinstance.cyz1k1vacvdd.us-east-1.rds.amazonaws.com 
  --user=root --password=adminadmin e_learning_system
  </code></pre>
  
  <p>but it is throwing this error:</p>
  
  <blockquote>
    <p>ERROR 2003 (HY000): Can't connect to MySQL server on
    'mydbinstance.cyz1k1vacvdd.us-east-1.rds.amazonaws.com' (10060)
    mysqldump: Got errno 22 on write</p>
  </blockquote>
  
  <p>How do I correct this?</p>