use mysql;
select * from user;
create user master;
create user master@masterIP[localhost] identified by 'password;
create user userID@'%' identified by 'password';
%
: 외부에서의 접근을 허용한다master@localhost
와 test
로 생성해보았는데,@
를 사용해서 생성한 경우 user명을 언급할 때 항상 @까지 풀로 작성해주어야 오류가 없다show grants for master@localhost;
grant usage on *.* to ...
라고 나오는데grant all privileges on Banking.Customer[Banking.*] to master@localhost;
grant select, update on Banking.Customer[Banking.*] to master@localhost;
revoke all on Banking.Customer from master@localhost;
drop user master@localhost;
참고) 테이블스페이스란
- 오라클에서 데이터 저장 단위 중 가장 상위에 있는 단위
- 이 권한도 따로 부여할 수 있나봄.
- mysql에서는 제외시켰음