Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

784
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda