본문 바로가기
SQL

mysql 유저 생성후 권한 줄때 에러 해결방법

by 집요한 개발자 2021. 12. 27.

create user 'id'@'%' identified by 'password';

 

grant all privileges on *.* to 'id'@'localhost';

이렇게 권한을 주려하면 에러가 발생한다.

 

해결방법은

grant all privileges on `%`.* to 'id'@'localhost'with grant option;

 

최종 권한 적용 

FLUSH PRIVILEGES;로 최종적으로 권한을 적용시킨다

'SQL' 카테고리의 다른 글

Mysql 설치시 server has failed 에러 해결 방법 중 하나  (0) 2021.12.27
MYSQL - NodeJS 4  (0) 2021.04.09
MYSQL - NodeJS 2.1  (0) 2021.04.08
MYSQL - NodeJS 3  (0) 2021.04.08
MYSQL - NodeJS 2  (0) 2021.04.08

댓글