mypguser专题

psql -U myusername mydb 错误:psql: FATAL: Ident authentication failed for user mypguser

psql: FATAL: Ident authentication failed for user"mypguser" 请编辑你的pg_hba.conf,这个文件一般位于/etc/postgresql/X.Y/main/pg_hba.conf,X.Y是你的PostgreSQL的版本号,将下面行的peer改为trust: local all all trust #