Ubuntu下安装PostgreSQL出现服务器工具未安装错误的解决

做点笔记,在Ubuntu下安装好PostgreSQL后每次使用pgAdmin连接时都会出现一个服务器工具未安装的提示,google一下,找到http://techxplorer.com/2008/01/16/installing-postgresql-server-instrumentation-under-ubuntu/,按照所说的运行
psql -U postgres -d postgres -h localhost < /usr/share/postgresql/8.2/contrib/adminpack.sql,问题算是解决了。
ps:用psycopg2连接时,在windows下不指定host参数也可以,在linux下却必须要指定。

你可能感兴趣的:(Ubuntu,Ubuntu,PostgreSQL,Linux,SQL,Server,Google)