-
MySQL 계정 생성 (v8.0 이상)카테고리 없음 2022. 7. 6. 09:41반응형
https://fruitdev.tistory.com/206
MySQL 5.x는 아래와 같이
mysql> grant all privileges on DB명.* to 계정ID@'호스트명' identified by '(신규/기존)비밀번호' with grant option; mysql> flush privileges;
MySQL 8 이상에서는 아래와 같이
mysql> CREATE USER 계정ID@'호스트명' identified by '(신규/기존)비밀번호'; mysql> grant all privileges on DB명.* to 계정ID@'호스트명' with grant option; mysql> flush privileges;