1. 程式人生 > >DCL(權限 ,用戶)

DCL(權限 ,用戶)

用戶 創建用戶 -1 dcl evo -- spa col upd

2017-07-18 14:20:12

-- 創建用戶
create user [email protected]%‘ IDENTIFIED by ‘1234‘;

-- 授權
grant create, alter, drop, select, delete, update, insert on java03.* to [email protected]%‘;

-- 撤銷權限
revoke create, alter, drop on java03.* from [email protected]%‘;

-- 查詢用戶權限
show grants for [email protected]

/* */%‘;

-- 刪除用戶
drop user [email protected]%‘;

DCL(權限 ,用戶)