首页 > 其他 > 详细

User “postgres” Has No Password Assigned

时间:2020-10-29 14:21:48      阅读:182      评论:0      收藏:0      [点我收藏+]

Problem

When trying to remotely connect to Postgres 10.10 install for the first time I got and authentication error via pgadmin

From the log files (/var/lib/pgsql/10/data/log/postgresql-Wed.log)

2019-09-25 14:05:38.970 BST [22665] FATAL:  password authentication failed for user "postgres"
2019-09-25 14:05:38.970 BST [22665] DETAIL:  User "postgres" has no password assigned.
        Connection matched pg_hba.conf line 90: "host   all             all             192.168.240.0/24               md5"

 

Resolution

Set a password for postgres

From CentOS CLI

su - postgres
 
psql
 
postgres=# \password postgres

 

User “postgres” Has No Password Assigned

原文:https://www.cnblogs.com/telwanggs/p/13896231.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!