我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
执行脚本
wsl 启 psql
最新推荐文章于 2022-08-26 14:55:43 发布