I was configuring postgresql and pgAdmin4 in my system, for a project i have been working on. Followed the process as directed in the official documentation, installed and started postgresql using these commands
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo service postgresql start
Then, setup a password for 'postgres' using sudo passwd postgres
.
Then, went on to download the pgAdmin4 adminstration platform for postgresql using the following commands,
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
sudo apt install pgadmin4
Faced the real problem while trying to connect with server.
I was trying to configure postgresql and pgadmin4 for my system, but while connecting with the server, i got this error
unable to connect to server: connection failed: fatal: password authentication failed for user "postgres" connection to server at "localhost" (127.0.0.1). port 5432 failed: fatal: password authentication failed for user "postgres"
I went to look for pg_hba.conf pg_hba.conf file configuration, as suggested by some people, but it looks fine, i don't know. My postgresql.conf configuration is
listen_addresses = 'localhost'
port = 5432
password_encryption = scram-sha-256
As for my operating system i.e, Ubuntu 22.04 LTS, it seems to support pgAdmin4 version i installed (7.3) as there's no upperlimit specified for it.supported versions