您好,登錄后才能下訂單哦!
$ psql -U peimsmdata -h 127.0.0.1 peimsm
could not change directory to "/root"
Password for user peimsmdata:
psql (9.2.23, server 9.6.3)
WARNING: psql version 9.2, server version 9.6.
Some psql features might not work.
Type "help" for help.
原因:
雖然系統安裝了9.6版本的pgsql,但是psql這個腳本卻引用了舊的版本。
解決方法:
替換系統中舊版本的psql腳本為新的版本。
$ psql --version
could not change directory to "/root"
psql (PostgreSQL) 9.2.23
# which -a psql
/usr/bin/psql
/usr/local/postgresql/bin/psql
/bin/psql
# mv /usr/bin/psql /usr/bin/psql.bak
# ln -s /usr/local/postgresql/bin/psql /usr/bin/psql
$ psql -U peimsmdata -h 127.0.0.1 peimsm
could not change directory to "/root": Permission denied
Password for user peimsmdata:
psql (9.6.3)
Type "help" for help.
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。