1. 程式人生 > >PostgreSQL提示:‘psql: FATAL: ”Peer authentication failed for user ”postgres“’錯誤#將檔案Database administ

PostgreSQL提示:‘psql: FATAL: ”Peer authentication failed for user ”postgres“’錯誤#將檔案Database administ

#將檔案Database administrative 下列中的peer改為trust
$sudo nano /etc/postgresql/10/main/pg_hba.conf
#重新載入配置
$sudo /etc/init.d/portgresql reload
#peer(不可信),trust(可信),md5(加密)
--------------------- 
作者:shannon-Li 
原文:https://blog.csdn.net/weixin_42555131/article/details/80893193