1 | ERROR 2005 (HY000): Unknown MySQL server host 'xxxxxxxx.ap-northeast-1.rds.amazonaws.co' (0) |
上記のようにRDSのエンドポイントに接続できない場合は以下のようにデバッグをすること。ただしルーター直にアクセスできなくなるので変更したい場合は戻すこと。
- 確認
1 2 3 4 5 | $ nslookup xxxxxxxx.ap-northeast-1.rds.amazonaws.com Server: xxxxxxxxxxxxx Address: xxxxxxxxxxx ** server can't find xxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com: REFUSED |
- Mac>システム環境設定>ネットワーク>Wi-Fi>詳細>DNS>8.8.8.8 and 8.8.4.4を追加
- 下記のように名前解決できれば接続可能。
1 2 3 4 5 6 7 8 9 | $ nslookup xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com canonical name = xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com. xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com canonical name = xxxxxxxxxxxxx.ap-northeast-1.compute.amazonaws.com. Name: xxxxxxxxxxxxx.ap-northeast-1.compute.amazonaws.com Address: xxxxxxxxxxxxx |
Was this helpful?
0 / 0
1989年生まれのSRE。 ホスティングから大規模なアドテクなどのインフラエンジニアとして携わる。好きなツールはAnsible,Terraform,CircleCIで、ECS/Fargateでのインフラ構築を得意とする。個人開発では「夫婦、パートナー向け家事管理サービス/famii」をCakePHP/Laravelで開発中。副業では数社サーバー保守とベンチャー企業のインフラコンサルティングやMENTAで未経験者にインフラのコーチングを実施している。また、「脆弱性スキャナVuls」のOSS活動もしており、自称エバンジェリスト/技術広報/テクニカルサポート/コントリビュータでもある。現在はサービスの信頼性向上、DevOps、可用性、レイテンシ、パフォーマンス、モニタリング、緊急対応、インフラコード化、リファクタリング、セキュリティ強化、新技術の検証、Docker開発環境の提供、AWSでのインフラ構築、GCPでのGKE/Kubernetes保守などを担当している。