小编G.S*_*G.S的帖子

如何从WSL连接到Windows Postgres数据库

我在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"
Run Code Online (Sandbox Code Playgroud)

尝试连接WSL Postgres,但我不想使用以下命令运行Ubuntu Postgres: sudo /etc/init.d/postgresql start

postgresql windows-subsystem-for-linux

5
推荐指数
3
解决办法
326
查看次数

5
推荐指数
1
解决办法
2万
查看次数