MySql 계정관리

김종상·2023년 3월 15일
0

BackEnd

목록 보기
1/5

계정생성

내부ip접속 : create user '계정아이디'@localhost identified by '비밀번호';

외부ip접속 : create user '계정아이디'@'%' identified by '비밀번호';

계정삭제 명령어 : delete from user where user='계정아이디;

권한부여

  • select, update, delete, insert 권한 모두 부여
    grant all privileges on 데이터베이스이름.테이블이름(*:전체) to '계정이름'@'호스트' identified by '계정비밀번호' with grant option;

  • 권한부여 확인
    show grants for '계정명'@'호스트';

  • 권한 삭제
    revoke all on '데이터베이스이름'.'테이블이름' from '계정이름'@'호스트';

profile
Programming begginer

1개의 댓글

comment-user-thumbnail
2023년 3월 15일
  • 리플래쉬 :
    flush privileges;
답글 달기