linux翰高怎么导入sql文件,安装瀚高数据库(HighGo DataBase)时的一点心得体会

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

前提2:见下图:

1f43e71d12e0db2192fcab128ae2ea1b.png

[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]$

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值