doufei0933 2014-09-09 10:13
浏览 568

Amazon RDS:如何将数据库导入亚马逊RDS实例?

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.

  • 写回答

2条回答 默认 最新

  • du127953 2014-09-09 10:27
    关注

    Hope this helps.

    1. Make sure port 3306 is allowed on the Amazon EC2 Instance firewall.
    2. Add security group that allows port 3306
    3. On the mysql of both local and amazon, add the host myinstances.aa23swersdf.us-east-1.rds.amazonaws.com with your corresponding username and password.
    4. Flush privileges.

    You can also used MySQL Connector to test. It is available to download at the Internet.

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料