How to fix the RDS / MariaDb Connection issues ?

0

I have completed the full setup for MariaDb into the AWS environment. The EC2, VPC and DataBase are public, up and running however I am still unable to connect wi the error "Can't connect to server on <my DataBase endpoint>". What am I missing? What am I doing wrong?

Is there a way to check where is the connection failure?

2개 답변
0

Hello.

If you want to check the connection from EC2 to RDS, I think the Reachability Analyzer function will be useful.
https://aws.amazon.com/jp/blogs/database/troubleshoot-network-connectivity-to-amazon-rds-databases-using-vpc-reachability-analyzer/
https://repost.aws/knowledge-center/vpc-connectivity-reachability-analyzer

If you are connecting directly to RDS from your local PC, the security group settings may not allow connection or the RDS public access settings may not be enabled.
Also, it is not recommended to make a database such as RDS public for security reasons, so I think it is better to change the connection method as described in the document below.
https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/

profile picture
전문가
답변함 3달 전
0

Hi, You should follow the guidance of this knowledge article to verify multiple possible causes of such error: https://repost.aws/knowledge-center/rds-cannot-connect

Best,

Didier

profile pictureAWS
전문가
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠