반응형 grant2 Mysql/Mariadb 권한 확인 (grant / revoke) Mysql/maria DB에서 사용하는 권한에 대해 알아보겠습니다. Mysql/mariad db의 권한에 대해 알아보겠습니다. 1. 권한 설정 권한 설정은 유저와 host를 명확히 하여 주어야 하며 password도 설정이 가능하며 with grant option은 설정시 맨 마지막에 적어야 한다. grant '권한명' on db.'table 또는 *(전체)' to 'user'@'host' ; grant '권한명' on db.'table 또는 *(전체)' to 'user'@'host' identified by 'password'; grant '권한명' on db.'table 또는 *(전체)' to 'user'@'host' identified by 'password' with grant op.. 2020. 12. 15. mysql / mariadb grant 설정 mysql/mariadb 권한 설정하기 1. 권한확인 show grants 명을을 통해 확인할 수 있다. a. 현재 접속 계정에 부여된 권한 확인 MariaDB [(none)]> show grants ; +----------------------------------------------------------------------------------------------------------------------------------------+ | Grants for root@localhost | +--------------------------------------------------------------------------------------------------------------.. 2020. 12. 14. 이전 1 다음 반응형