GBase 8s
安装配置
问答
如何使用 dbaccess 创建用户呢
发表于2024-07-31 13:46:46107次浏览4个评论
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【GBase版本】:GBase 8s V8.8
【操作系统】:
【CPU】:
【问题描述】*: 如何使用命令行创建用户呢,我 使用命令报错:

评论
登录后才可以发表评论
路路路发表于 2年前
最佳回答
大米发表于 2年前
https://gbasedbt.com/index.php/archives/394/
GBase用户51935发表于 2个月前
学习下。
GBase用户51848发表于 2个月前
好问题啊。
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25044
- 42023-09-25浏览数:18519
- 52020-05-11浏览数:17526
onmode -wf USERMAPPING=ADMIN
2.切换到root用户创建希望创建的数据库用户名,并且设置密码(密码要最少8位,过短数据库会报错):
[root@localhost ~]# groupadd test
[root@localhost ~]# useradd -g test -d /home/test -s /bin/bash -m test
[root@localhost ~]# passwd test
3.切换到gbasedbt,使用管理员权限创建用户:
[gbasedbt@localhost ~]$ dbaccess - -
Your evaluation license will expire on 2023-08-27 00:00:00
> create user test with password "test_123";
4.给创建的用户赋权:
> grant dba to test;
Permission granted.
> grant connect to test;
Permission granted.
> grant resource to test;
Permission granted.
> database test;