Rails连接PostgreSQL错误:psql: 致命错误: 用户 “p(2)

# Put your actual configuration here
 # ----------------------------------
 #
 # If you want to allow non-local connections, you need to add more
 # "host" records.  In that case you will also need to make PostgreSQL
 # listen on a non-local interface via the listen_addresses
 # configuration parameter, or via the -i or -h command line switches.


 # TYPE  DATABASE        USER            ADDRESS                METHOD

# "local" is for Unix domain socket connections only
 local  all            all                                                  trust
 # IPv4 local connections:
 host    all            all            127.0.0.1/32            trust
 # IPv6 local connections:
 host    all            all            ::1/128                      trust
 # Allow replication connections from localhost, by a user with the
 # replication privilege.
 #local  replication    postgres                                            peer
 #host    replication    postgres        127.0.0.1/32            ident
 #host    replication    postgres        ::1/128                        ident


#=========================================

------------------------------------华丽丽的分割线------------------------------------

CentOS 6.3环境下yum安装PostgreSQL 9.3

PostgreSQL缓存详述

Windows平台编译 PostgreSQL

Ubuntu下LAPP(Linux+Apache+PostgreSQL+PHP)环境的配置与安装

Ubuntu上的phppgAdmin安装及配置

CentOS平台下安装PostgreSQL9.3

PostgreSQL配置Streaming Replication集群

------------------------------------华丽丽的分割线------------------------------------

PostgreSQL 的详细介绍请点这里
PostgreSQL 的下载地址请点这里

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/1600a3c53ff967cc7c7c44b0b3a763dd.html