我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
猜你喜欢
转载自blog.csdn.net/qq_40484416/article/details/104671763
今日推荐
周排行