Bootcamp/Web

[SQL] ERD, MySQL, Docker, DBeaver 설치

K_Hyul 2023. 11. 17. 09:32
728x90

34일차, 35일차에는 SQL에 대해서 공부할 예정이다.

 

MySQL을 사용하기 위해 Docker를 활용하는데

 

0. ERD

https://hudi.blog/entity-relation-diagram/

 

ERD (Entity-Relation Diagram) 표기법

1. 데이터베이스 설계 단계 데이터베이스 설계는 개념적 모델링 → 논리적 모델링 → 물리적 모델링 세 단계로 진행된다. 개념적 모델링은 Entity 를 도출하고 ERD를 작성하는 단계이다. 논리적 모

hudi.blog

여기를 학습한 후 시작한다.

 

1. 우선 사용할 수 있는 환경을 만들기위해 powershell에 linux명령어를 쓸 수 있게 해야한다.

wsl --install

WSL 설치

wsl --set-default-version 2

WSL 버전2를 기본값으로 설정

 

2. Docker 설치

https://www.docker.com/products/docker-desktop/

 

Docker Desktop: The #1 Containerization Tool for Developers | Docker

Docker Desktop is collaborative containerization software for developers. Get started and download Docker Desktop today on Mac, Windows, or Linux.

www.docker.com

 

 

 

 

 

이렇게 설정을 한 후 powershell를 사용해 제대로 작동하는지 확인

wsl -l -v

 

wsl -d docker-desktop busybox

 

3. DBeaver 설치

https://dbeaver.io/

 

DBeaver Community | Free Universal Database Tool

DBeaver Universal Database Tool DBeaver Community is a free cross-platform database tool for developers, database administrators, analysts, and everyone working with data. It supports all popular SQL databases like MySQL, MariaDB, PostgreSQL, SQLite, Apach

dbeaver.io

설치 후에 .exe 파일을 실행하면

아래 이미지가 나온다 이를 따라 MySQL를 선택해 진행하면

 

 

 

 

error : Public key Retrieval is not allowed 이 떳을 때

 

 

 

 

 

이와 같이 하면 MySQL를 활용할 환경을 완성했다.

 

 

 

 

 

 

728x90

'Bootcamp > Web' 카테고리의 다른 글

[Crawling] 주식 정보  (1) 2024.01.04
[Notalone] mini project (web)  (0) 2023.12.27
[Spring] Spring Security  (0) 2023.12.27
[Spring] Spring _ Validation, Valid annotation & Exception  (0) 2023.12.07
[Front] HTML, CSS  (1) 2023.11.23