重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 728|回复: 0

如何进入pg

[复制链接]
发表于 2019-5-31 09:33:40 | 显示全部楼层 |阅读模式
作为新手,安装好pg后,如何进入数据库?

直接在 root 用户下输入psql,结果报错了:

[root@localhost run]# psql
psql: FATAL:  role "root" does not exist

原来需要切换到 pg的专用用户下去执行。
[root@localhost run]# su - postgres
[postgres@localhost ~]$ psql
psql (11.3)
Type "help" for help.
postgres=#

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2023-3-22 17:16 , Processed in 0.083192 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表