当前位置:网站首页>opengauss创建用户权限问题
opengauss创建用户权限问题
2022-08-11 07:43:00 【Asky】
创建了一个用户,但是没有权限操作public的权限
db_test=> create table public.tb_test(id number,name varchar(32));
ERROR: permission denied for schema public
DETAIL: N/A
报该错误,然后赋予grant all privileges to hxl;这个权限,但是这个权限很大,是否有办法创建一个只能操作某个库的账号呢
openGauss=# grant all privileges to hxl;
ALTER ROLE
openGauss=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------------------------------------------------------------+-----------
hxl | Sysadmin | {}
omm | Sysadmin, Create role, Create DB, Replication, Administer audit, Monitoradmin, Operatoradmin, Policyadmin, UseFT | {}
其他答案1:
grant create,usage on schema public to hx1;
边栏推荐
- 查询跟踪快递单号物流,智能分析物流中转有延误的单号
- 2022-08-10 mysql/stonedb-slow SQL-Q16-time-consuming tracking
- 2021-08-11 For loop combined with multi-threaded asynchronous query and collect results
- 1.1-回归
- 欢迎加入sumarua网络安全交流社区
- go 操作MySQL之mysql包
- 【43. 字符串相乘】
- 2021-08-11 for循环结合多线程异步查询并收集结果
- 1101 B是A的多少倍 (15 分)
- The most complete documentation on Excel's implementation of grouped summation
猜你喜欢
从何跟踪伦敦金最新行情走势?
Redis source code: how to view the Redis source code, the order of viewing the Redis source code, the sequence of the source code from the external data structure of Redis to the internal data structu
TF中的四则运算
1061 True or False (15 points)
1081 检查密码 (15 分)
CSDN21天学习挑战赛——封装(06)
1056 组合数的和 (15 分)
1046 punches (15 points)
美术2.4 UV原理基础
【TA-霜狼_may-《百人计划》】图形3.7.2 command buffer简
随机推荐
Four operations in TF
经典论文-MobileNet V1论文及实践
Conditional statements in TF; where()
Evolution and New Choice of Streaming Structured Data Computing Language
1003 I want to pass (20 points)
易观分析联合中小银行联盟发布海南数字经济指数,敬请期待!
Kaldi语音识别工具编译问题记录(踩坑记录)
迷你图书馆系统(对象+数组)
1056 组合数的和 (15 分)
支持各种文件快速重命名最简单的小技巧
XXL-JOB 分布式任务调度中心搭建
8、Mip-NeRF
JUC并发编程
TF中使用softmax函数;
2021-08-11 for循环结合多线程异步查询并收集结果
租房小程序
Distributed Lock-Redission - Cache Consistency Solution
基于微信小程序的租房小程序
Item 2 - Annual Income Judgment
场地预订系统,帮助场馆提高坪效