psql: fatal: peer authentication failed for user

相關問題 & 資訊整理

psql: fatal: peer authentication failed for user

The problem is still your pg_hba.conf file (/etc/postgresql/9.1/main/pg_hba.conf). This line: local all postgres peer. Should be local all postgres md5. After altering this file, don't forget to restart your PostgreSQL server. If you're on Linux,, Your connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql . So you will have to create the UNIX user dev and then login as dev or use sudo -, Leave the IDENT settings alone and create users in your database for each operating system user that you want to grant access to. If a user is already authenticated by the OS and logged in, PostgreSQL won't require further authentication and will gra, Your connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql . So you will have to create the UNIX user dev and then login as dev or use sudo -, The problem is still your pg_hba.conf file (/etc/postgresql/9.1/main/pg_hba.conf). This line: local all postgres peer. Should be local all postgres md5. After altering this file, don't forget to restart your PostgreSQL server. If you're on Linux,, In a fresh install from a few days ago, the second line of my pg_hba.conf is local all all peer. I believe this is the one that makes your connection attempt fail. The order of rules matter here: the first one that matches the access method, username, da, Open /etc/postgresql/9.5/main/pg_hba.conf with root access sudo nano /etc/postgresql/9.5/main/pg_hba.conf. Change peer to md5 in these lines. Before changing # "local" is for Unix domain socket connections only local all all peer # IPv4 local c

相關軟體 PostgreSQL (64-bit) 資訊

PostgreSQL (64-bit)
PostgreSQL 64 位是一個功能強大的開源對象關係數據庫系統。它擁有超過 15 年的積極開發和經過驗證的架構,在可靠性,數據完整性和正確性方面贏得了良好聲譽。它運行在所有主要的操作系統上,包括 Linux,UNIX(AIX,BSD,HP-UX,SGI IRIX,Mac OS X,Solaris,Tru64)和 Windows。  PostgreSQL 64 位是一個功能強大的對象... PostgreSQL (64-bit) 軟體介紹

psql: fatal: peer authentication failed for user 相關參考資料
postgresql - Getting error: Peer authentication failed for user ...

The problem is still your pg_hba.conf file (/etc/postgresql/9.1/main/pg_hba.conf). This line: local all postgres peer. Should be local all postgres md5. After altering this file, don't forget to ...

https://stackoverflow.com

postgresql - psql: FATAL: Peer authentication failed for user "dev ...

Your connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql . So you will have to creat...

https://stackoverflow.com

postgresql - psql: FATAL: Ident authentication failed for user ...

Leave the IDENT settings alone and create users in your database for each operating system user that you want to grant access to. If a user is already authenticated by the OS and logged in, PostgreSQ...

https://stackoverflow.com

psql: FATAL: Peer authentication failed for user "dev" - Stack Overflow

Your connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql . So you will have to creat...

https://stackoverflow.com

postgresql - Getting error: Peer authentication failed for user "postgres ...

The problem is still your pg_hba.conf file (/etc/postgresql/9.1/main/pg_hba.conf). This line: local all postgres peer. Should be local all postgres md5. After altering this file, don't forget to ...

https://stackoverflow.com

postgresql - psql: FATAL: Peer authentication failed for user ...

In a fresh install from a few days ago, the second line of my pg_hba.conf is local all all peer. I believe this is the one that makes your connection attempt fail. The order of rules matter here: the...

https://dba.stackexchange.com

postgresql - Peer authentication failed for user with all ...

Open /etc/postgresql/9.5/main/pg_hba.conf with root access sudo nano /etc/postgresql/9.5/main/pg_hba.conf. Change peer to md5 in these lines. Before changing # "local" is for Unix domain so...

https://askubuntu.com