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.
Hope this helps.
You can also used MySQL Connector to test. It is available to download at the Internet.
Have you added your IP Address to the security group.
Or you can install phpMyAdmin on one of the AWS instances, assign it to the security group and then run the import.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.