Doris权限设置Demo

Doris权限管控Demo如下:

CREATE USER 'test'@'%' IDENTIFIED BY 'test';
create database testdb;

GRANT SELECT_PRIV,LOAD_PRIV,ALTER_PRIV,CREATE_PRIV,DROP_PRIV on test.* TO 'test'@'%';

GRANT USAGE_PRIV ON WORKLOAD GROUP 'test_query' TO 'test'@'%';

REVOKE ALTER_PRIV,CREATE_PRIV,DROP_PRIV on test.* from 'test'@'%';

REVOKE SELECT_PRIV on test.* from 'test'@'%';

你可能感兴趣的:(数据库)