I have installed Ubuntu ecosystem from Microsoft Store (https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6?SilentAuth=1&wa=wsignin1.0).
After setting up the environment, I installed postgres, which looks ok:
eliya@DESKTOP-LDD0TT1:/mnt/c/Users/Eliya$ sudo -i -u postgres[sudo] password for eliya:postgres@DESKTOP-LDD0TT1:~$ psqlpsql (10.12 (Ubuntu 10.12-0ubuntu0.18.04.1))Type "help" for help.postgres=#
Now, I have on my Windows Datagrip, and I can't figure out how can I connect to psql in my Ubuntu. First I tried to use localhost
as my host, but it uses, of course, Windows psql
service instead of ubuntu's.
How can I connect Datagrip to my virtual Ubuntu?