본문 바로가기

MySQL5

[RDS] SpringBoot 와 RDS 연동하기 DB 확인 MySQL RDS DB 인스턴스의 데이터베이스에 연결하기 PROMPT> mysql -h -P -u -p database 선택 테이블 보기 테이블 정보 테이블 내용 조회 SpringBoot 참고 : 2022.08.31 - [java/spring] - [Spring] spring 프로젝트 MySQL 연결하기 build.gradle dependencies resources/application.properties spring.output.ansi.enabled=always # MySQL setting spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver # JDBC URL of the database. spring.datasource.url=.. 2022. 9. 1.
[MySQL] mysql cli syntax highlighter mycli 기존 mycli install $ brew update && brew install mycli # Only on macOS 사용법 $ mycli -u user -p db_name $ mycli -u user -h host_name -p db_name MySQL command line tool 에서 syntax highlighting 과 자동완성을 사용할 수 있다. 참고 : https://github.com/dbcli/mycli https://www.cyberciti.biz/open-source/command-line-hacks/mycli-awesome-mysqlmariadbpercona-mysql-client-with-auto-completion-and-syntax-highlighting/ 2022. 9. 1.
[MySQL] MySQL 서버 실행 확인, 데이터베이스 생성 (+ MySQL Unknown database 해결) mysql database 실행 확인 netstat -an | grep 3306 mysql 서버 실행 mysql 접속 database 목록 확인 show databases; 데이터베이스 생성 create database test_db; 참고 : https://jerryjerryjerry.tistory.com/121 2022. 8. 31.
[MySQL/AWS] MySQL 데이터베이스 엔진을 실행하는 RDS DB 인스턴스에 연결하기 1. MySQL command-line client 에서 연결 1-1) MySQL RDS DB 인스턴스의 데이터베이스에 연결하기 PROMPT> mysql -h -P -u -p 1-2) 위 명령어를 입력하면 Enter password: 가 뜸. 비밀번호 입력 1-3) 데이터베이스 리스트 보기 show databases; 1-4) chloe 데이터베이스 사용하기 use chloe 1-5) 테이블 리스트 보기 show tables; 2. MySQL Workbench에서 연결 2-1) Database > Manage Connections 클릭 2-2) Manage Server Connections 창에서 New 클릭 2-3) Connect to Database 창에서 다음 정보 입력 Connection Name.. 2022. 8. 30.
[MacOS - M1] m1 Mac에 mysql 설치하기 1. brew를 통해 mysql 설치 brew install mysql 2. mysql 버전 확인 mysql --version 3. mysql server 실행 mysql.server start 4. mysql 기본 설정 mysql_secure_installation 질문들 - 1) VALIDATE PASSWORD COMPONENT ( 복잡한 비밀번호 여부 ) : n 2) set the password (비밀번호 설정 & 확인) 3) Remove anonymous users? (익명 사용자 삭제) : y 4) Disallow root login remotely? (원격 접속 허용하지 않을 것인지) : y 5) Remove test database and access to it? (test DB 삭제 여부.. 2022. 7. 18.