GBase基础使用

发布时间 2023-07-12 17:22:18作者: 小清澈

1、设置远程访问

GBase 程序上控制了gbase用户不允许 远程访问。

所以需要自己创建一个超级用户。

su gbase

 gs_guc reload -N all -I all -h "host all all 0.0.0.0/0 sha256"

查看监听

gs_guc check -N all -I all -c "listen_addresses"

 

如果不为*

则修改为*

gs_guc reload -N all -I all -c "listen_addresses='*'"

 

查看密码加密方式

password_encryption_type

gsql -d postgres -p 15432

 

show password_encryption_type;

如果不为1

则执行

gs_guc reload -N all -I all -c "password_encryption_type=1"

创建用户

 

create user supergbase sysadmin password "Wsn@Gwx&Za2019";