I am using Amazon EC2 with Amazon RDS.
I have successfully created database and uploaded code to amazon using Elastic Beanstalk.
Now I want to import my local databse data to RDS databse. I surf and found that by mysql command
we can do that so I do this
D:\wamp\bin\mysql\mysql5.5.8\bin>mysql --host=myinstances.aa23swersdf.us-east-1.rds.amazonaws.com --user=username --pass=password --port=3306 dbname < locahost.sql
But it throws this error :
ERROR 2003 (HY000): Can't connect to MySQL server on 'myinstances.aa23swersdf.us-east-1.rds.amazonaws.com' (10060)
How can I solve it?
I have do this by cmd on windows.