Apache Doris 中文技术论坛
Questions Tags Users Badges

【已解决】2.1.2版本的sql阻止规则是没有设置global,为什么不对root用户生效呢

Asked Jun 6, 2024 Modified Jun 11, 2024
Viewed 50
2.1

2.1.2版本的sql阻止规则没有设置global,为什么不对当前用户生效呢,用户为root。只有改为全局时才能对该用户生效。

edited Jun 11, 2024
____3
asked Jun 6, 2024
2 Answers

如果配置 global=false,则需要配置指定用户的规则绑定,多个规则使用,分隔;具体内容可以查阅:高危 SQL 限制

edited Jan 1, 1970
张彬华7688
answered Jun 11, 2024

如果只想针对某个用户生效,可执行

SET PROPERTY FOR 'root' 'sql_block_rules' = 'test_rule_1'

更多信息可查看 https://doris.apache.org/zh-CN/docs/admin-manual/query-admin/sql-interception

edited Jan 1, 1970
mink211
answered Jun 11, 2024
Related Questions
Doris BE 集群1-2个节点过一段时间后内存持续升高,出现OOM,定位是冷数据垃圾回收功能影响
doris2.1.7 truncate table xxx 及 create table 报错,faied to find enugh backend
1 answers
flinksql写Doris标记删除时'sink.enable-delete' = 'false'的含义
1 answers
2.1.0 BE OOM,内存分析求助
1 answers
doris无法对包含.的文本进行分词
1 answers
doris be节点会不定期在凌晨02:00 崩溃
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.