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

猜你喜欢

转载自riching.iteye.com/blog/1777028
今日推荐