Postgresql -bash: psql: command not found

后端 未结 6 2099
借酒劲吻你
借酒劲吻你 2020-12-13 17:39

I have installed PostgreSQL and it is working ok. However, when I went to restore a backup I got the error -bash: psql: command not found:

 [roo         


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 18:22

    perhaps psql isn't in the PATH of the postgres user. Use the locate command to find where psql is and ensure that it's path is in the PATH for the postgres user.

提交回复
热议问题