LoginSignup
1
1

More than 3 years have passed since last update.

AWS RDSにローカルから接続できない

Posted at

エラー内容

データの検証のため、RDSにローカルのwindowsから接続しようと試みました。

mysql -u root -p -P 3306 -h <RDS>

すると・・・

ERROR 2003 (HY000): Can't connect to MySQL server on '<RDS>' (10060)

ncも試してみる。

nc <RDS>
nc: can't connect to remote host (<RDS IP>)

ncもダメ・・・

解決方法

RDSインスタンスの「パブリックアクセス可能」を「あり」にする
e124141.PNG

参考:https://aws.amazon.com/jp/premiumsupport/knowledge-center/rds-connectivity-instance-subnet-vpc/

これでローカルから接続できるようになりました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1