Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

776
Views
Communication problem inEC2 (Spring boot) and RDS (MySQL)

I have a RDS instance (MySQL) and EC2 instance (Spring boot).

Locally, my Spring Boot app correctly establishes the connection to my database in RDS.

But when I install my Spring Boot app in EC2, the application tries to make the connection to the database in RDS (MySQL). But it throws this error at me:

SQLCODE: 0 SQLSTATE: 08S01 TRACE: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

In EC2, I have this security group inboundenter image description here

And outbound enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This sound weird; because if something is working from your local laptop which is on public IP address; it should work from within AWS environment too. Anyway, for connection; you need to not check security group of EC2 only but also of RDS because RDS should allow incoming from EC2 also. Though exception doesn't look like connection/security group problem.

I feel it has something to do with your application.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!