MySQL8 root 권한 부여

2022. 7. 19. 14:07DB/MySQL

728x90

MySQL8에서는 계정생성, 권한부여를 따로따로 해야한다.

계정 생성하면서 권한 부여까지 한줄로 퉁치기 불가.

CREATE USER 'root'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

 

참고자료:

https://fruitdev.tistory.com/206
https://stackoverflow.com/questions/50570592/mysql-8-remote-access

728x90
반응형