164 Star 224 Fork 1.2K

openGauss / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
安装验证.md 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
lijun 提交于 2021-03-12 16:47 . fix bugs

安装验证

通过openGauss提供的gs_om工具可以完成数据库状态检查。

前提条件

openGauss数据库已安装。

操作步骤

  1. 以omm用户身份登录服务器。

  2. 执行如下命令检查数据库状态是否正常,“cluster_state ”显示“Normal”表示数据库可正常使用。

    gs_om -t status
  3. 数据库安装完成后,默认生成名称为postgres的数据库。第一次连接数据库时可以连接到此数据库。

    其中postgres为需要连接的数据库名称,26000为数据库主节点的端口号,即XML配置文件中的dataPortBase的值。请根据实际情况替换。

    gsql -d postgres -p 26000

    连接成功后,系统显示类似如下信息表示数据库连接成功。

    gsql ((openGauss 2.0.0 build 290d125f) compiled at 2021-03-08 02:59:43 commit 2143 last mr 131
    Non-SSL connection (SSL connection is recommended when requiring high-security)
    Type "help" for help.
    
1
https://gitee.com/opengauss/docs.git
git@gitee.com:opengauss/docs.git
opengauss
docs
docs
2.0.0

搜索帮助