我在Windows计算机上运行Postgres 11服务。如何从wsl连接到此数据库?
尝试:su-Postgres
postgres@LAPTOP-NQ52TKOG:~$ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"
尝试连接WSL Postgres,但我不想使用以下命令运行Ubuntu Postgres:
sudo /etc/init.d/postgresql start