重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

postgresql服务器版本和psql版本不一致解决办法

$ psql -U peimsmdata -h 127.0.0.1 peimsm

创新互联自2013年起,是专业互联网技术服务公司,拥有项目网站制作、网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元鹤壁做网站,已为上家服务,为鹤壁各地企业和个人服务,联系电话:18980820575

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.


当前名称:postgresql服务器版本和psql版本不一致解决办法
转载注明:http://cqcxhl.com/article/pcpjio.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP