The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

x·2022년 9월 29일
0

상황

DB 포트포워딩 절차

  • DB는 aws VPC 내에 있어서 외부에서 접근 불가한 상황
  • 로컬에서 aws ec2(dev, prod)를 호스트로 지정
  • VPC에 있는 3306 포트에 접근하기 위해 로컬 33306 포트를 지정하고 중간 호스트(ec2)와 목적지 주소(DB address)를 지정함
  • termius에 지정된 설정에 따라 로컬 포트 → 호스트 → vpc DB 포트가 연결된다

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. datagrip에서 DB 연결을 시도하니 이런 에러가 발생했다

원인

입사 전에 DB 주소가 바뀌었고 notion 문서에 업데이트되지 않아서 예전 주소를 입력함

해결

prod DB는 접속이 잘 됐다. datagrip에서 option, id, pw, port 등을 확인했고 termius에서도 host, port forward 설정값을 확인했다. ~/.ssh/config에서도 문제가 없었다.

결국 다른 백엔드 개발자분께 안된다고 말씀드리고 주소 새로 받아서 termius에 destination address 수정

0개의 댓글