Database 3

Spring Boot H2 Database 사용하기

실행 환경은 Windows, IntelliJ, Java 17, Spring Boot 3 버전, gradle 프로젝트를 사용했다. plugins { id 'java' id 'org.springframework.boot' version '3.2.1' id 'io.spring.dependency-management' version '1.1.4' } ... java { sourceCompatibility = '17' } resources 하위에 application.yml 파일을 만든 후 아래의 코드를 작성한다. spring: h2: console: enabled: true server: port: 8070 프로젝트 실행 후 Console 창에서 JDBC URL 을 찾아서 ctrl+C로 복사해둔다. 콘솔창에서 ..

Java 2023.12.27

입사 지원 ERD 그려보기

https://dbdiagram.io/home dbdiagram.io - Database Relationship Diagrams Design Tool dbdiagram.io 입사 지원을 하다보면 이력서에 작성해야 할 내용이 많다. 방대한 입력 데이터를 회사는 어떻게 DB에 저장할까? 그림으로 데이터 관계도를 그려봤다. 채용 프로세스를 살펴보면 대부분 입사 지원(이력서 제출) > 코딩 테스트/필기 시험 > 1차 면접 > 임원 면접 > 최종 발표 와 같은 형식으로 진행된다. dbdiagram 사이트를 통해 ERD를 그려보았다. dbdiagram 코드 // Use DBML to define your database structure // Docs: https://dbml.dbdiagram.io/docs Tab..

Database 2023.11.28

Windows에서 MySQL 설치 및 삭제하기

목차 1. MySQL 다운로드 2. MySQL 실행 확인 3. 자동 path 설정됐는지 확인해보기 4. MySQL 예제로 테스트해보기 5. MySQL 삭제하기 1. MySQL 다운로드 https://www.mysql.com/downloads/ MySQL :: MySQL Downloads MySQL NDB Cluster CGE MySQL NDB Cluster is a real-time open source transactional database designed for fast, always-on access to data under high throughput conditions. MySQL NDB Cluster MySQL NDB Cluster Manager Plus, everything in MySQL..

Database 2023.11.28