[트러블 슈팅] 인기 검색어 구현 Redis 설정 및 문제 해결하기
·
DBMS/Redis
1. 레디스 설정package com.example.eightyage.global.config;import org.springframework.cache.CacheManager;import org.springframework.cache.annotation.EnableCaching;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.data.redis.cache.RedisCacheConfiguration;import org.springframework.data.redis.cache.RedisCacheManager;..
[SQL] 터미널에서 MySQL 스키마 삭제하는 방법
·
DBMS/SQL
MySQL 서버에 접속터미널에서 MySQL에 접속하려면 다음 명령어를 입력합니다.mysql -u root -p `-u root` MySQL 사용자(root 또는 다른 계정)`-p` 비밀번호 입력을 위한 옵션 (입력하면 비밀번호를 요청함) 비밀번호를 입력하면 MySQL 쉘에 접속됩니다.     스키마(데이터베이스) 목록 확인현재 존재하는 데이터베이스(스키마)를 확인하려면 다음 명령어를 입력합니다.SHOW DATABASES;     스키마 삭제DROP DATABASE 명령어를 사용하여 특정 스키마를 삭제할 수 있습니다.DROP DATABASE schema_name; 위 명령어를 실행하면 해당 스키마(데이터베이스) 내부의 모든 테이블과 데이터가 영구적으로 삭제됩니다.     ⚠️ MySQL 에서 삭제하면 안되..