spell 发表于 2016-11-20 11:14:48

PostgreSQL报错:psql: connection pointer is NULL

抛出这个问题的原因是环境变量设置有问题
打开个人目录下面的.bash_profile或者/etc/profile
添加以下两行
export PG_HOME=****pg的目录
export LD_LIBRARY_PATH=$PG_HOME/lib
并加载一下
source .bash_profile
在运行psql,就可以正常访问了
参考:http://www.postgresql.org/docs/9.0/static/install-post.html
页: [1]
查看完整版本: PostgreSQL报错:psql: connection pointer is NULL