wsl 启 psql

我windows上装了postgersql,在dos下执行psql,显示命令不存在,用postgresql 自己的shell 执行 psql -U postgres -W -f 脚本文件
同样也是没有反应。
然后去服务把posql的服务停止并在其属性里设置禁止自启动
然后在wsl 中,输入 sudo service postgres start 11,就可以了
在这里插入图片描述
用命令psql -U postgres -W -f /mnt/d/......./XXXXXX.sql
执行脚本

发布了27 篇原创文章 · 获赞 1 · 访问量 1176

猜你喜欢

转载自blog.csdn.net/qq_40484416/article/details/104671763
wsl