Troubleshoot Issues Connecting to an RDS Instance
Be sure that your instance is in the "available" state
If you recently launched or rebooted your DB instance, confirm that the instance is in the available state in the Amazon RDS console. Depending on the size of your DB instance, it can take up to 20 minutes for the instance to become available for network connections.
Be sure that your DB instance allows connections
Be sure that traffic from the source connecting to your DB instance isn't gated by one or more of the following:
- Any VPC security groups associated with the DB instance. If necessary, add rules to the security group
- Any DB security group associated with the DB instance.
- Connections outside a VPC. Be sure that the instance is publicly accessible and that the instance is associated with a public subnet (the route table allows access from an internet gateway). For more information, see Scenarios for Accessing a DB Instance in a VPC.
- Network access control lists (ACLs). Network ACLs act as a firewall for resources in a specific subnet in a VPC. If you use ACLs in your VPC, be sure that they have rules that allow inbound and outbound traffic to and from the DB instance.
- Network or local firewalls. Check with your network administrator to determine if your network allows traffic to and from the ports the DB instance uses for inbound and outbound communication.
Note: Amazon RDS does not accept internet control message protocol (ICMP) traffic, including ping.
Troubleshoot potential DNS name or endpoint issues
When connecting to your DB instance, you use a DNS name ("endpoint") provided by the Amazon RDS console. Be sure that you use the correct endpoint, and that you provide the endpoint in the correct format to the client you use to connect to the DB instance. For a list of DB engine connection tutorials, which includes instructions on how to find and properly use an endpoint in various client applications, see Getting Started with Amazon RDS.
Check the route tables associated with your Multi-AZ deployment
When you create a Multi-AZ deployment, you launch multiple replica DB instances in different Availability Zones to improve the fault tolerance of your application. Be sure that the subnets associated with each instance are associated with the same or similar route tables. Otherwise, if your primary instance fails over to a standby replica, and the standby replica is associated with a different route table, traffic that was previously routed to your DB instance might no longer be routed correctly.
For more information about how to configure route tables, see Working with Route Tables. For additional information about Multi-AZ deployments, see High Availability (Multi-AZ).
Verify the connectivity
Verify your connection by running one of the following commands:
相關推薦
Troubleshoot Issues Connecting to an RDS Instance
Be sure that your instance is in the "available" state If you recently launched or rebooted your DB instance, confirm that the insta
Troubleshoot Issues Connecting to S3 from VPC Endpoints
You might experience connectivity issues with your gateway VPC endpoint due to network access or security rules that allow the connection to Am
Troubleshoot Connecting to an Instance in a VPC
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Troubleshoot Errors with Credentials when Connecting to an EC2 Linux Instance
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Troubleshoot Connecting to EC2 Linux Instance Through SSH
To ensure that you can connect to your EC2 Linux instance using SSH, first verify that your Security Group(s) permit access to your EC2 instan
asmcmd:Connected to an idle instance.
asmcmd原因:環境變量設置錯誤 asmcmd:Connected to an idle instance.
Restore an RDS Instance From a Snapshot
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Launching an RDS Instance Covered by the Free Tier
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Update the Encryption Key Used By an RDS Instance
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Add a Second Elastic IP Address with a Single Elastic Network Interface to an EC2 Instance
When you add a second Elastic IP address to an elastic network interface, that Elastic IP address is lost when the interface is rebooted. To ma
Enable Multiple Concurrent Users Access to an EC2 Instance Running Windows Using RDP
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Assign Additional EBS Volumes to an OpsWorks Instance
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Troubleshoot Problems Connecting to Aurora Clusters or Instances
Make sure your instance is in the available state When you create a new RDS DB instance, it can take up to 20 minutes for the instan
Assign an IAM Role to an EC2 Instance
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
asmcmd命令報錯.Connected to an idle instance
錯誤描述: [[email protected] grid]$ asmcmd Connected to an idle instance. ASMCMD> ls ASMCMD-08102: no connection to ASM; command requ
Attach an RDS DB Instance to an OpsWorks Stack
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
開啟頁面出現Object reference not set to an instance of an object錯誤
開啟網頁出現 查看出錯的位置,如圖中紅色部分所標,因為系統之前執行正常,所以這部分程式碼是沒有問題的,出問題的函式是get name函式,開啟相應的網頁程式碼,發現 其功能是根據專業程式碼讀取專業名稱,應該就最近增加的相應資料量出現了問題,從資料庫中把相關的表格開啟檢查,果然發現,有的
Troubleshoot Connecting to a Snowball Appliance
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Automatically Attach a Second ENI to an Instance Launched Through Auto Scaling
import boto3 import botocore from datetime import datetime ec2_client = boto3.client('ec2') asg_client = boto3.client('autoscaling') def lamb
Upgrade the OS of an EC2 Instance Running Windows to a Newer Version
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So