暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

openGauss训练营学习心得

原创 悠悠640945 2021-09-12
642

2021年9月11-12日下午13:30-17:30
参加openGauss训练营学习活动(https://www.modb.pro/event/370),学习了opengauss体系结构、主备部署方法、WDR性能报告、MOT内存表、AI特性等知识,以下部分笔记记录。

体会:
GaussDB(高斯数据库)是华为自主研发数据库。(并非完全自研,可以算是在PostgreSQL9.2改造)(华为高斯数据库正式上市之前,GaussDB OLAP数据库就已于2015年在工商银行上线,替代了海外的数据仓库)(浅析华为高斯GaussDB
https://zhuanlan.zhihu.com/p/135372967)
GaussDB支持关系型和非关系型引擎。

GuassDB演化之路:
2001-2011 内部自用
2011-2019 产品化
2019-2020 云&开源
2021- 生态构建、认证等

OpenGauss是开源系列。
gaussdb分为GaussDB T,GaussDB A。
opengauss是GaussDB T的开源,免费使用。
opengauss支持单机和一主多备部署方式。(不支持集群)

1、部署教程:
https://www.modb.pro/db/106407
(shell脚本一键部署openGauss2.0.1[CentOS 7.6])

2、查看运行端口:
netstat -tunlp|grep LISTEN|grep gauss
tcp 0 0 192.168.52.143:26000 0.0.0.0:* LISTEN 7215/gaussdb
tcp 0 0 192.168.52.143:26001 0.0.0.0:* LISTEN 7215/gaussdb

3、登录数据库:
su - omm
gsql -p 26000 -d postgres #-p指定数据库服务器的端口号 -d指定想要连接的数据库名称

postgres=# \l #列出数据库
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------±------±---------±--------±------±------------------
postgres | omm | UTF8 | C | C |
template0 | omm | UTF8 | C | C | =c/omm +
| | | | | omm=CTc/omm
template1 | omm | UTF8 | C | C | =c/omm +
| | | | | omm=CTc/omm
(3 rows)

postgres=# \dn #列出schemas
List of schemas
Name | Owner
-------------±------
cstore | omm
dbe_perf | omm
pkg_service | omm
public | omm
snapshot | omm
(5 rows)

postgres=# create database testdb; #创建数据库

postgres=# \c testdb
Non-SSL connection (SSL connection is recommended when requiring high-security)
You are now connected to database “testdb” as user “omm”.

最后修改时间:2021-09-12 22:00:09
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论