如何进入Postgre SQL

作者: 重庆思庄 | 来源:发表于2019-06-12 15:46 被阅读0次

作为新手,安装好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=#

相关文章

网友评论

    本文标题:如何进入Postgre SQL

    本文链接:https://www.haomeiwen.com/subject/euplfctx.html