分享linux翰⾼怎么导⼊sql⽂件,安装瀚⾼数据库 (HighGoDataBase)时的⼀点⼼得体会


jyyll
F-hawking 2023-04-19 15:24:08 52808
分类专栏: 资讯

前提1:运⾏HGDB v4.3.2 runinstall程序的os⽤户是dameng

前提2:见下图:

[dameng@hgdbserver data]$ cat postgresql.conf | grep 58

port = 5866 #port = 5866# (change requires restart)

[dameng@hgdbserver data]$ psql

⼝令:

psql: 致命错误: 28P01: ⽤户 "dameng" Password 认证失败---->>>密码错误,登录不上

[dameng@hgdbserver data]$ psql -p 5866 -d postgres

⼝令:

psql: 致命错误: 28P01: ⽤户 "dameng" Password 认证失败---->>>密码错误,登录不上

[dameng@hgdbserver data]$ psql -p 5866 -d postgres -U highgo

⽤户 highgo 的⼝令:

psql: 致命错误: 3D000: 数据库 "postgres" 不存在 ---->>>报数据库postgres不存在

[dameng@hgdbserver data]$ psql -p 5866 -d highgo -U highgo --->>这个highgo user是runinstall程序的create database阶段⼿⼯输⼊的超级⽤户名称(见上图)

⽤户 highgo 的⼝令:

psql (4.3.2)

PSQL: Release 4.3.2

Connected to:

HighGo Database V4.3 Enterprise Edition Release 4.3.2 - 64-bit Production

输⼊ "help" 来获取帮助信息.

highgo=# \duS+

⾓⾊列表

⾓⾊名称 | 属性 | 成员属于 | 描述

----------+--------------------------------------------+----------+------

highgo | 超级⽤户, 建⽴⾓⾊, 建⽴ DB, 复制, 绕过RLS | {} |

highgo=#

highgo=#

highgo=#

highgo=# \l

数据库列表

名称 | 拥有者 | 字元编码 | 校对规则 | Ctype | 存取权限

-----------+--------+----------+------------+------------+-------------------

highgo | highgo | UTF8 | zh_CN.utf8 | zh_CN.utf8 |

template0 | highgo | UTF8 | zh_CN.utf8 | zh_CN.utf8 | =c/highgo +

| | | | | highgo=CTc/highgo

template1 | highgo | UTF8 | zh_CN.utf8 | zh_CN.utf8 | =c/highgo +

| | | | | highgo=CTc/highgo

(3 ⾏记录)

highgo=#

可以看出,

第⼀点:\l结果中第⼀列(名称列)中的highgo是写死的。

第⼆点:\l结果中第⼆列(拥有者)是runinstall程序的create database阶段⼿⼯输⼊的超级⽤户名称[dameng@hgdbserver data]$ ps -ef | grep postg

dameng 9476 1 0 21:15 ? 00:00:01 /data/highgo/4.3.2/bin/postgres -D /data/highgo/4.3.2/data dameng 9479 9476 0 21:15 ? 00:00:00 postgres: checkpointer process

dameng 9480 9476 0 21:15 ? 00:00:00 postgres: writer process

dameng 9481 9476 0 21:15 ? 00:00:00 postgres: wal writer process

dameng 9482 9476 0 21:15 ? 00:00:00 postgres: autovacuum launcher process

dameng 9483 9476 0 21:15 ? 00:00:00 postgres: stats collector process

dameng 9661 9529 0 21:46 pts/2 00:00:00 grep --color=auto postg

[dameng@hgdbserver data]$

网站声明:如果转载,请联系本站管理员。否则一切后果自行承担。

本文链接:https://www.xckfsq.com/news/show.html?id=20578
赞同 0
评论 0 条
F-hawkingL3
粉丝 9 发表 151 + 关注 私信
上周热门
如何使用 StarRocks 管理和优化数据湖中的数据?  2947
【软件正版化】软件正版化工作要点  2867
统信UOS试玩黑神话:悟空  2828
信刻光盘安全隔离与信息交换系统  2723
镜舟科技与中启乘数科技达成战略合作,共筑数据服务新生态  1256
grub引导程序无法找到指定设备和分区  1221
华为全联接大会2024丨软通动力分论坛精彩议程抢先看!  164
点击报名 | 京东2025校招进校行程预告  163
2024海洋能源产业融合发展论坛暨博览会同期活动-海洋能源与数字化智能化论坛成功举办  162
华为纯血鸿蒙正式版9月底见!但Mate 70的内情还得接着挖...  157
本周热议
我的信创开放社区兼职赚钱历程 40
今天你签到了吗? 27
如何玩转信创开放社区—从小白进阶到专家 15
信创开放社区邀请他人注册的具体步骤如下 15
方德桌面操作系统 14
用抖音玩法闯信创开放社区——用平台宣传企业产品服务 13
我有15积分有什么用? 13
如何让你先人一步获得悬赏问题信息?(创作者必看) 12
2024中国信创产业发展大会暨中国信息科技创新与应用博览会 9
中央国家机关政府采购中心:应当将CPU、操作系统符合安全可靠测评要求纳入采购需求 8

加入交流群

请使用微信扫一扫!