D
D
Daniil Kotlyar2022-01-03 16:33:26
Python
Daniil Kotlyar, 2022-01-03 16:33:26

How to implement postgres connection in wsl and in windows?

Good afternoon! I decided to migrate the database in the project from SQLite3 to PostgreSQL, in the course of work I ran into a problem: I installed postgreSQL separately inside wsl and virtual environment, however, I cannot connect PgAdmin4 from Windows with PostgreSQL from WSL. I connect via localhost, port 5432, standard admin .. but all in vain .. In WSL, the PostgreSQL version is 12, on Windows 14. I can’t upgrade to wsl to 14. How to be? I would either make a connection or install PgAdmin4 on wsl, but I don't know how. I would be grateful for any help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2022-01-03
@Daibend

start here
https://docs.microsoft.com/en-us/windows/wsl/networking
https://www.nextofwindows.com/allow-server-running...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question