PostgreSQL -bash:psql:找不到命令
我已经安装了PostgreSQL,它可以正常工作。但是,当我还原备份时,出现错误-bash: psql: command not found
:
[root@server1 ~]# su postgres [postgres@server1 root]$ psql -f all.sql
bash: psql: command not found
[postgres@server1 root]$
我做错了什么?
回答:
也许psql不PATH
属于postgres用户。使用locate命令查找psql的位置,并确保其路径在PATH
postgres用户的中。
以上是 PostgreSQL -bash:psql:找不到命令 的全部内容, 来源链接: utcz.com/qa/435802.html