Here is the error message i got:
````````````````````````````````````````````````````````````````````````````````````````````````
Can't connect to PostgresQL as the admin user.
Is the server running, have you adjusted pg_hba.conf, etc?
````````````````````````````````````````````````````````````````````````````````````````````````
And i have followed the documents to adjust the pg_hba.conf file like this:
````````````````````````````````````````````````````````````````````````````````````````````````
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
host all all
127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# "local" is for Unix domain socket connections only
local all all peer
# Allow replication connections from localhost, by a user with the
# replication privilege.
host replication all
127.0.0.1/32 trust
host replication all ::1/128 scram-sha-256
local replication all peer
````````````````````````````````````````````````````````````````````````````````````````````````
And also added " listen_addresses = '*' " to postgresql.conf
At last, i checked whether i have multiple versions of postgresql, but i only have one
version of postgresql.
Wha's going wrong? Anyone can help?