Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

782
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda