오류 사항
docker에 mariaDB를 다운받아 사용하고 있었고, workbench에 mariaDB를 연동하려고 했는데 오류가 났다.
Failed to Connect to MySQL at 127.0.0.1:3306 with user root
☝🏻이런 경우, 우선 workbench의 버전을 확인해본다. 버전이 8.0.27 이상이라면 8.0.26을 다시 다운받아준다.
https://downloads.mysql.com/archives/workbench/
MySQL :: Download MySQL Workbench (Archived Versions)
Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Workbench, please visit MySQL Downloads. MySQL open source software is provided under the GPL License.
downloads.mysql.com
다운로드 하고 연동
다운로드가 완료됐다면 workbench를 연다.
아래와 같은 설정을 해준다.
상단바 Database > Manage Connections 클릭
Manage Server Connections 창 > SSL 클릭 > Use SSL에 If available 혹은 No 선택
다시 처음화면으로 와서 +버튼을 누르고 연동시킬 준비를 한다.
Setup New Connection 창에서 아래 정보를 채워주고 OK 누르기
Connection Name : 원하는 이름
Hostname : 로컬이라면 localhost 혹인 127.0.0.1
Port : DB 포트번호
Store in Keychain : DB 비밀번호 입력
OK 누르기 전에 Test Connect 누르면 잘 연동되는지 미리 확인할 수 있다.
아래와 같이 뜨면 잘 연동된 것이다!
'오류해결' 카테고리의 다른 글
TypeError: Cannot destructure property '변수명' of 'req.body' as it is undefined. (0) | 2024.06.02 |
---|---|
express에서 API 구현시 URL parameters 받는 방법 (0) | 2024.05.29 |
Node.js에서 .env 변수 안불러와짐 (0) | 2024.05.24 |
[Fluter] solved - PlatformException 오류 해결 (2) | 2023.11.21 |
[Flutter] Solved - flutter doctor 오류(Xcode - cocoapods) (0) | 2023.11.21 |