-- 사용자생성
-- 유저이름@아이피주소 identified by 비밀번호
create user 'nani'@'%' identified by 'nani1234';
-- 권한 부여
-- Grant 권한 ON DB이름.테이블명 TO 유저이름@아이피주소 (*.* = 모든 디비.테이블)
Grant All privileges on *.* to 'nani'@'%';
-- blog 디비 생성
Create Database blog;
use blog;
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/blog?serverTimezone=Asia/Seoul
username: nani
password: nani1234