suyeoniii
수바리의 코딩일기
suyeoniii
전체 방문자
오늘
어제
  • 분류 전체보기
    • 🪓 삽질일기
    • 🔙 Backend
      • 🟢 Node.js
      • 🐈‍⬛ NestJS
      • 🌿 Springboot
      • 🗄️ Database
    • 🌸 Frontend
      • 🌐 React.js
      • 💚 Vue.js
      • 🤖 Android
    • 🕹️ 알고리즘
      • 💯 코딩테스트
    • 🔠 프로그래밍 언어
      • 💛 Javascript
      • 💙 Typescript
    • 🚀 배포
    • 🐱 Git
    • etc.
      • 개발환경
      • 오픈 API
      • 개념정리
      • 커뮤니티
    • AI
      • 생성형 AI
    • 회고

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • MAC
  • android
  • 알고리즘
  • Spring Boot
  • AWS
  • C++
  • nodejs
  • Git
  • ubuntu
  • node.js
  • html
  • node
  • ec2
  • vue
  • springboot
  • 회고
  • MySQL
  • java
  • 백준
  • javascript

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
suyeoniii

수바리의 코딩일기

[mysql][08S01]Communications link failure-Datagrip연결
🪓 삽질일기

[mysql][08S01]Communications link failure-Datagrip연결

2021. 2. 6. 02:58
반응형

Datagrip 연결 에러

[08S01]Communications link failure

탄력적IP를 부여받은 EC2인스턴스(ubuntu 18.04)를 Datagrip에서 mysql을 연결하려 했는데

Test Connection을 해보니 에러가 발생했다.

 

[08S01] 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.
java.net.ConnectException: Connection refused (Connection refused).

 

 

해결방법

 

$ cd /etc/mysql/mysql.conf.d
$ sudo vi mysqld.cnf                            #bind-address = 127.0.0.1 부분 -> #주석처리#
$ sudo service mysql restart

 

(ubuntu 18.04기준)

/etc/mysql/mysql.conf.d 위치에 있는 mysqld.cnf 파일을 수정해주었다.

bind-address = 127.0.0.1 이라고 되어있는 부분이 있는데 

그럼 원격접속이 안되므로 이부분을 주석처리 해주면 된다

 #bind-address = 127.0.0.1

 

반응형
저작자표시 (새창열림)

'🪓 삽질일기' 카테고리의 다른 글

[Datagrip]connection timed out  (0) 2021.04.25
[AWS ec2]letsencrypt적용 후 https불러와지지 않음  (0) 2021.02.13
[CLion][C++]Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)  (0) 2021.01.24
[Node.js]EADDRINUSE 에러  (1) 2021.01.06
[php][mysql]오류 : SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES), SQLSTATE[HY000] [1049] Unknown database 'database'  (0) 2020.11.27
    '🪓 삽질일기' 카테고리의 다른 글
    • [Datagrip]connection timed out
    • [AWS ec2]letsencrypt적용 후 https불러와지지 않음
    • [CLion][C++]Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
    • [Node.js]EADDRINUSE 에러
    suyeoniii
    suyeoniii
    개발관련 문제 해결, 공부한 내용 등을 업로드합니다.

    티스토리툴바