pgadmin3专题

pgadmin3 新建服务器出现错误 Peer authentication failed for user postgres 的解决办法

用pgadmin3 新建服务器出现错误 Peer authentication failed for user "postgres" 在stackoverflow上找到答案,出现此错误的原因是: Peer authentication 是默认的配置,如果你的计算机用户名和你的postgres数据库名是一样的话,那么就不会出现此错误,不需要为你的数据库设置密码。 还有一种md5 auth