New EC2 not connecting to RDS

I lost my PEM and had to create a new EC2. I duplicated it with "make same". I then tried to connect to the RDS database and it gives me cannot connect with user@. now, the IP address of the server has changed, but it is in the same security group, so shouldn't matter.

I changed the user to be from anywhere % and flushed privileges. I even rebooted the DB. I've tried messing with the security stuff, but everything is as it should be, the same as it was before hand when it was working on the previous server.

either something was not "duplicated" when the EC2 was duplicated or there is something somewhere I have to change because the IP of the EC2 changed.

if they are in the same security group, this shouldn't be an issue however.

any help is appreciated. as I can no longer connect to the DB with the app.

the EC2 is linux running a docker container for node.

I can still connect to the RDS via local machine.



Read more here: https://stackoverflow.com/questions/68459248/new-ec2-not-connecting-to-rds

Content Attribution

This content was originally published by Jason G at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: