简体   繁体   中英

AWS Aurora - Unable to connect to aws aurora db

I am trying to connect to my database from local machine but I am getting the following error.

ERROR 2003 (HY000): Can't connect to MySQL server on 'finaltesting2.cluster-cxtmwsuqx4ty.us-east-1.rds.amazonaws.com' (110)

Things I have done:

1: Changed the vps security group for inbound traffic. For testing purpose, I have even allowed all TCP traffic from all of the IP range

2: I don't have any firewall on my local machine that is blocking me to connect to port 3306

3: I have already looked many similar issues on stackoverlow and the answers is just to change the inbound rules but its not working for me.

4: I have proper internet connection for my local machine. ie no network issue

RDS 在此处输入图片说明 在此处输入图片说明

Aurora Serverless (and may other AWS DB offerings - like Amazon Neptune, DocDB etc) are VPC only. You can still connect to them outside of the VPC with some additional setup. I've elaborated a few here: [1] [2]

[1] Connect to Neptune on AWS from local machine

[2] AWS Aurora MySQL serverless: how to connect from MySQL Workbench

Note that the above solutions are for non production setups. If you need something more resilient, you would need to have more infra in place. For example - If you are using an ALB to expose your DB endpoint outside of the VPC, then you need to have mechanisms that would make sure that the ALB is always pointing to the right IP of the DB instance, as IPs are bound to change when failover and host replacements happen. Do keep that in mind.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM