Basic/Database

    [DynamoDB] 다이나모DB Local 설치

    [DynamoDB] 다이나모DB Local 설치

    DynamoDB Local 설치 도커를 사용하여 다이나모 디비를 받아옵니다. (Docker가 설치되어 있어야 합니다.) docker pull amazon/dynamodb-local DynamoDB 실행 docker run -d -p 8000:8000 amazon/dynamodb-local 확인 (aws cli가 설치되어 있어야 합니다.) aws dynamodb list-tables --endpoint-url http://localhost:8000

    [Redis] Docker Desktop을 활용하여 Redis 설치

    [Redis] Docker Desktop을 활용하여 Redis 설치

    Docker Run Docker를 Run하기 위해 작업 중인 파워쉘을 실행시켰습니다. Docker Desktop에서 제공하는 명령어를 실행시킵니다. 에러 발생 혹시나 Docker Desktop이 설치되었음에도, 해당 명령어를 입력했을 때 docker를 찾지 못한다면 환경변수의 Path에 docker.exe의 경로가 추가되었는지 확인해봐야 합니다. Redis 설치 docker pull redis 도커에 redis를 받아옵니다. docker run --name woong-redis -d -p 6379:6379 redis 설치된 docker 이미지를 실행시킵니다. docker ps container가 잘 구동되고 있는지, docker에서 구동되고 있는 container 목록을 불러옵니다. redis가 loca..

    [NoSQL] 몽고 DB(MongoDB)설치 (6.0 이상 버전일 때)

    [NoSQL] 몽고 DB(MongoDB)설치 (6.0 이상 버전일 때)

    몽고디비 다운로드 구글에 MongoDB라고 검색합니다. 상단 메뉴에서 Community Server를 선택합니다. 쉽게 그냥 아래 링크를 통해 들어가셔도 됩니다. Try MongoDB Community Edition Try MongoDB Community Edition on premise non-relational database including the Community Server and Community Kubernetes Operator for your next big project! www.mongodb.com 현재 버전과, 각자 컴퓨터에 설치된 Platform 및 설치 파일을 선택하시고 Download 버튼을 눌러서 다운받아주세요. 설치 클릭하면 자동 설치 됩니다. Next만 누르시면 됩니다...

    [Oracle] 오라클 8080 Port 변경하기

    [Oracle] 오라클 8080 Port 변경하기

    Oracle을 설치하다 보면 기본적으로 8080 port를 오라클에 배정하게 되는데, 이게 생각보다 많은 귀찮음을 유발한다. 국비지원 교육을 받게 되면 편할지 몰라도, 오라클을 접하지 않고 MySQL로 개발을 처음 접하는 사람들과 프로젝트를 진행하다 보면 다들 8080 포트를 사용하는데 오라클 설치자들은 계속 application.properties 또는 applicaion.yml에서 포트번호를 수정해야 하기 때문이다. 그래서 아예 오라클이 쓰고 있는 8080포트를 변경시키기로 생각했다. 다행히 인터넷에 많은 정보들이 있었다. 변경 윈도우에서 CMD(명령 프롬프트)를 실행한다. sqlplus를 입력하여 sql 명령어를 입력하여 sql 화면으로 넘어간다. user-name에는 sys as sysdba를 입..

    [Redis] Redis Spring 세팅

    이전글 Redis 로컬 설치 방법은 다음 글을 참고하세요 [Redis] Redis 설치 Redis 소개 Key - Value 형태 인메모리 데이터 저장 구조 문자열, 해시, 리스트, 셋, 스트림 등 데이터 구조 제공 Spring Data Redis Some commands (such as SINTER and SUNION) can only be processed on the server side when all invo chordplaylist.tistory.com Reids 설정 Spring Gradle 의존성 추가 implementation 'org.springframework.boot:spring-boot-starter-data-redis' application.yml host, port 추가 spr..

    [Redis] Redis 설치

    [Redis] Redis 설치

    Redis 소개 Key - Value 형태 인메모리 데이터 저장 구조 문자열, 해시, 리스트, 셋, 스트림 등 데이터 구조 제공 Spring Data Redis Some commands (such as SINTER and SUNION) can only be processed on the server side when all involved keys map to the same slot. Otherwise, computation has to be done on client side. Therefore, it is useful to pin keyspaces to a single slot, which lets make docs.spring.io Introduction to Redis Learn about th..

    [MySQL] current_timestamp를 사용했는데 현재 시간이 다르다면?

    [MySQL] current_timestamp를 사용했는데 현재 시간이 다르다면?

    서론 역시 프로젝트를 진행하다 보면 블로그에 쓸만한 글감들이 팡팡 튀어 오르는 것 같다. @Modifying에 대해 공부를 하며 프로젝트에 적용을 시키던 도중 @Modifying을 사용하면 @LastModifiedDate 어노테이션이 먹통이 되는지 업데이트가 되지 않는 현상을 발견했다. 그래서 @query를 이용하여 set을 하는 김에 lastModifiedAt 칼럼에 직접 현재 시간을 집어넣기로 했다. @Modifying(clearAutomatically = true) @Query("update Comment c set c.comment = :comment, c.lastModifiedAt = current_timestamp where c.id = :commentId ") void update(@Para..

    [Oracle] Select 문 (3) - ORDER BY 절

    ORDER BY 절 order by절을 사용하여 정렬하기 select first_name ,salary from employees order by salary desc; -- desc 내림차순 -- asc 오름차순 select first_name ,salary from employees where salary >= 9000 order by salary desc; 기본 값 오름차순(작은 거 → 큰 거) 한글 : 가, 나, 다, 라 영어 : A, B, C D 숫자 : 1, 2, 3, 4 날짜 : 예전 날짜에서 최근 날짜로 정렬 정렬 조건이 복수일 때는 ‘,’(콤마)로 구분하여 나열한다. -- 부서번호를 오름차순으로 정렬하고 부서번호, 급여, 이름을 출력하세요 select department_id ,salar..