164 Star 224 Fork 1.2K

openGauss / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
初始化数据库.md 483 Bytes
一键复制 编辑 原始数据 按行查看 历史
jqn 提交于 2021-08-24 14:25 . 添加图片

初始化数据库

使用SQL创建新的数据库。

说明: 为确保安全,首次登录后请修改omm初始密码。

使用SQL语句创建数据库时,指定数据库的字符集为GBK。

gsql -d postgres -p 26000
openGauss=# CREATE DATABASE mydb WITH ENCODING 'GBK' template = template0;

显示类似如下信息:

CREATE DATABASE
1
https://gitee.com/opengauss/docs.git
git@gitee.com:opengauss/docs.git
opengauss
docs
docs
3.0.0

搜索帮助