mysql -u root -p
create database "database명";
create user 'user명'@'127.0.0.1' identified by 'password';
'database명'@'접속위치'
127.0.0.1으로 할경우는 localhost, 내부 접속에서의 권한만 갖는다.
grant all privileges on 테이블.* to 'user명'@'127.0.0.1';
flush privileges;
spring:
application:
name: practice
datasource:
url: jdbc:mariadb://localhost:3306/HYG_practice?allowPublicKeyRetrieval=true&useSSL=false
driver-class-name: org.mariadb.jdbc.Driver
username: HYG
password: [비밀번호]