我試圖使用命令從本地機器導入我的.sql轉儲AWS RDS數據庫實例:無法從本地MySQL服務器連接到AWS RDS數據庫實例
C:\Program Files\MySQL\MySQL Server 5.5\bin>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
但引發此錯誤:
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
如何更正此問題?
您是否編輯過RDS主機的安全組以打開您的IP地址的MySQL TCP端口? – Phil