McSim
McSim

Reputation: 1

AWS (Elastic Beanstalk, RDS). The RDS database becomes unavailable

I deployed webAPP (Java) using Elastic Beanstalk, RDS(MySQL). HEALTH Status OK! Access to the database is lost after 1 or 2 days. In the IDEA, when I connect to the database, I get an error [42000][1049] Unknown database 'ebdb'.

I have to rebuild environment (Elastic Beanstalk). But in a time I get that problem again. What is the reason of the error? How I can see in AWS is there database or not? Thanks.

Upvotes: 0

Views: 165

Answers (1)

smac2020
smac2020

Reputation: 10734

I have never seen this issue. I have a custom Java Spring BOOT app running on Elastic Beanstlak and queries data from a RDS MySQL instance. Its been running well over a year without issue.

enter image description here

The database runs fine without any connection issues you are describing. When you look at the RDS instance in the AWS Management Console, what is the status of the database. Is it available - as shown here?

enter image description here

The URL to the RDS Management console in us-west-2:

https://us-west-2.console.aws.amazon.com/rds/home

Upvotes: 0

Related Questions