Postgres psql: FATAL: Peer authentication failed for user "xxx"
来源:互联网 发布:淘宝网蓝月亮洗衣液 编辑:程序博客网 时间:2024/05/19 02:03
In pg_hba.conf, the first match counts. Per documentation:
The first record with a matching connection type, client address, requested database, and user name is used to perform authentication. There is no "fall-through" or "backup": if one record is chosen and the authentication fails, subsequent records are not considered. If no record matches, access is denied.
编辑pg_hba.conf
# vim /var/lib/pgsql/9.6/data/pg_hba.conf
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
#
# local DATABASE USER METHOD [OPTIONS]
# host DATABASE USER ADDRESS METHOD [OPTIONS]
# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
local all xxx trust
# /etc/init.d/postgresql-9.6 reload
重新登录
# psql -U xxx -d msolution.cn_development
psql (9.6.1)
Type "help" for help.
xxx=>
- Postgres psql: FATAL: Peer authentication failed for user "xxx"
- psql: FATAL: Peer authentication failed for user “xxx”
- psql: FATAL: Ident authentication failed for user “postgres”
- centos7解决django.db.utils.OperationalError: FATAL: Peer authentication failed for user "postgres"
- OperationalError: FATAL: Ident authentication failed for user “postgres”
- psql -U myusername mydb 错误:psql: FATAL: Ident authentication failed for user "mypguser"
- pgadmin3 新建服务器出现错误 Peer authentication failed for user "postgres" 的解决办法
- 【Linux】psql: FATAL: Ident authentication failed for user "username" Error and Solution
- PostgreSQL: IDENT authentication failed for user postgres
- CENTOS针对POSTGRES出现的POSTGRESQL IDENT AUTHENTICATION FAILED FOR USER
- PostgreSQL新手上路PG::ConnectionBad (FATAL: Peer authentication failed
- Git fatal: Authentication failed for '***' 错误解决
- pgpool authentication with pgpool failed for user
- error:password authentication failed for user
- intellij idea git fetch failed fatal:Authentication failed for
- Git fatal: Authentication failed
- git clone 的时候 fatal: Authentication failed for "http://......"
- Github错误:fatal: Authentication failed for 'https://github.com/ ...
- 撸了隔壁的网,满足一下窝的偷窥癖
- php编译安装升级
- 锁(三) 完成量
- 复习UNITY3D网络模块UNET
- angularjs指令中的compile与link函数详解
- Postgres psql: FATAL: Peer authentication failed for user "xxx"
- VS2005这么设置工作路径让找到动态库方便项目管理
- openglesForC++绘制草地
- <Android> 常用ADB调试命令
- linux服务器安装MYSQL
- openni2结构简介
- RecycleView(二)
- SPI初识
- 必备软件