wsl start psql

I coat the windows postgersql, execution psql under dos, display command does not exist, use postgresql own shell execution psql -U postgres -W -f 脚本文件
is also no response.
Then go to the service of the posql service stops and its properties in the set is prohibited from the start .
Then wsl, enter sudo service postgres start 11on it
Here Insert Picture Description
with the command psql -U postgres -W -f /mnt/d/......./XXXXXX.sql
to execute the script

Published 27 original articles · won praise 1 · views 1176

Guess you like

Origin blog.csdn.net/qq_40484416/article/details/104671763