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

 

相关文章:

  • 2021-04-23
  • 2022-12-23
  • 2021-12-02
  • 2021-07-11
  • 2021-05-06
  • 2021-12-05
  • 2021-06-03
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2021-07-10
  • 2021-08-26
  • 2021-05-03
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案