Postgres “psql not recognized as an internal or external command”

前端 未结 10 1733
南方客
南方客 2021-02-02 06:07

For Postgres, I keep getting this error multiple times even though I have already set the location of the bin folder to the path variable in Windows 8. Is there something else I

10条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-02 06:17

    Find your binaries file where it is saved. get the path in terminal mine is

    C:\Users\LENOVO\Documents\postgresql-9.5.21-1-windows-x64-binaries (1)\pgsql\bin
    

    then find your local user data path, it is in mostly

    C:\usr\local\pgsql\data
    

    now all we have to hit the following command in the binary terminal path:

    C:\Users\LENOVO\Documents\postgresql-9.5.21-1-windows-x64-binaries (1)\pgsql\bin>pg_ctl -D "C:\usr\local\pgsql\data" start
    

    done!

提交回复
热议问题