IT/db
mariadb 권한 허용시 grant all privileges on *.* to 'user'@'%' identified 'passwd' with grant option 뜻
thesse
2022. 6. 22. 14:18
300x250
반응형
grant all privileges on a.b
여기서 a.b 는 a 데이터베이스의 b 테이블을 뜻함
*.* = 모든 디비, 모든 테이블에 대 해서 설정한다는 뜻
to 'root'@'%'
'root' 유저에 대해서
% = 어디서 접근하든 허용
만약 보안상 문제로 외부접근을 차단하고 로컬에서만 쓰려면 'root'@'localhost'로 하면 됨
idnetified by '1234' with grant option
'1234'라는 패스워드를 써서 접근할때 허용
300x250
반응형