返回首页

gbase数据、南大通用产品文档:GBase8cSUMMARY_STAT_SYS_TABLES

更新日期:2024年09月11日


GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
35

操作步骤
步骤1
修改集群配置文件gbase_8a_gcluster.cnf,在[gbased]里添加ssl 信息。以路径
/usr/local/ssl 为例,添加示例如下:
$ vi $GCLUSTER_BASE/config/gbase_8a_gcluster.cnf
[client]
port=5258
socket=/tmp/gcluster_5258.sock
connect_timeout=43200
#default-character-set=gbk
[gbased]
basedir = /opt/gcluster/server

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
440
datadir = /opt/gcluster/userdata/gcluster
socket=/tmp/gcluster_5258.sock
pid-file = /opt/gcluster/log/gcluster/gclusterd.pid
#default-character-set=gbk
ssl-ca=/usr/local/ssl/ca-cert.pem
ssl-cert=/usr/local/ssl/server-cert.pem
ssl-key=/usr/local/ssl/server-key.pem
log-error
port=5258
core-fil
步骤2
查看配置是否成功,重启集群。
#gcluster_services all restart
步骤3
执行gccli,登录集群。
$ gccli -uroot
GBase client 9.5.2.13.113642. Copyright (c) 2004-2020, GBase.
All Rights
Reserved.
步骤4
查看ssl 参数状态,配置成功则显示为“YES”。
gbase> show variables like 'have_%ssl';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| have_openssl
| YES
|
| have_ssl
| YES
|
+---------------+-------+
2 rows in set

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
441

语法格式
CREATE/ALTER USER
user [auth_option]
[expiration_option | lock_option | host_option] ...
host_option: {
hosts 'host_list'
}
命令说明
host_list 的值可以为IP 或主机名,允许包含多个,使用空格“ ”分割,使用“%”
和“_”做通配符(通配符用法同原host 功能)。默认host_list 为空,此时登录无
host 限定。登录的IP 或主机名在列表中才允许用户登录。
创建用户时指定user@host 中host 为具体固定唯一的字符串时,不能在此指定账户
登录列表hosts,如果非要指定,hosts 应与host 相同。