我在Windows电脑上运行Postgres 11服务.
当我try 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的博士后.我不想用以下方式运行Ubuntu Postgres: