GBase 8a
运维管理
文章
数据库用户白名单功能
发表于2024-12-30 18:43:2927次浏览0个评论
GBase南大通用GBase 8a MPP Cluster数据库支持用户白名单功能,只有白名单内用户可以正常登录。
执行用户有create user权限。
验证步骤:
#创建用户
gbase> create user testdb identified by 'Testdb@2022' hosts "localhost 192.168.188.140 192.168.188.141";
Query OK, 0 rows affected (Elapsed: 00:00:00.04)本地登录:
[gbase@c2 ~]$ gccli -utestdb -pTestdb@2022 -h192.168.188.140
GBase client 9.5.3.27.6a5f874bc81. Copyright (c) 2004-2022, GBase. All Rights Reserved.
gbase> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| performance_schema |
+--------------------+
2 rows in set (Elapsed: 00:00:00.01)
gbase>异地登录:
[gbase@red1 ~]$ gccli -utestdb -pTestdb@2022 -h192.168.188.140
ERROR 1130 (HY000): Host '192.168.188.146' is not allowed to connect to this GBase server
[gbase@red1 ~]$结论:GBase南大通用GBase 8a MPP Cluster数据库支持用户白名单功能,只有白名单内用户可以正常登录。
评论已关闭
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25052
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526