164 Star 224 Fork 1.2K

openGauss / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
初始化数据库.md 539 Bytes
一键复制 编辑 原始数据 按行查看 历史
gongsiyi150 提交于 2020-11-30 16:03 . fix bugs

初始化数据库

使用SQL创建新的数据库。

![](C:/Users/gongsiyi/Desktop/test/05-openGauss 安装指南/public_sys-resources/icon-note.gif) 说明: 为确保安全,首次登录后请修改omm初始密码。

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

gsql -d postgres -p 26000
postgres=# 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
1.0.1

搜索帮助