데이타베이스/MYSQL
                
              [MySQL] 유저 권한 설정
                유키공
                 2019. 1. 16. 10:30
              
              
                                
        MySQL 의 grant 명령어로 사용자 권한 설정
사용자 권한 설정
모든 db 및 테이블에 접근권한 설정
모든 db 및 테이블에 권한을 주고 로컬 및 리모트에서도 접속가능하도록 설정
설정한 권한 적용 (반드시 해야 적용이 된다.)
권한 삭제
권한 조회
            
                            
        사용자 권한 설정
grant all privileges on dbname.table to userid@host identified by 'password';
grant all privileges on *.* to userid@host identified by 'password';
grant all privileges on *.* to userid@'%' identified by 'password';
flush privileges;
revoke all on dbname.table from userid@host
show grants for userid@host