I want to connect pgadmin (Windows) with postgreSQL-11.18 (Ubuntu 22.04) and getting error: connection timeout error
I am following steps from: link
I have started postgres as mentioned in steps:
Started postgreSQL
While Connecting with pgAdmin I am getting this error: link
I have followed the same steps as mentioned.
If anyone had encountered already, need help.
2
Answers
follow this tutorial How to install Postgresql and AGE. It worked for me, make sure that your PostgreSQL is up to date.
I was able to install pgadmin on windows native, with postgres server on WSL Arch linux following the tutorial you mentioned but with a few changes:
pg_ctl -D <your database directory> start
, the output was this:Get the second line of the output
listening on IPv4 address "127.0.0.1", port 5432
While adding a new server on pgadmin, in the "connection" tab, you need to put Host name/address the IPv4 address you saw in the output: 127.0.0.1.
Maintenance databse needs to be the name of the database of your postgres installation. You can see the available databases with the command
psql --list
on WSL.Username needs to be the username you connect to postgres on WSL, and the password needs to be the one you login to your username. You can save it.
Give a good name to your connection on the general tab and save it.