2
我有三个版本的Ubuntu Ubuntu 12.04.2 LTS(精确的穿山甲)上安装了8.4,9.1和9.2的postgres。 8.4版本是在5433端口5434连接到PostgreSQL给出“无法连接到服务器”的错误
运行,9.1端口5432和9.2当我运行postgres status
我得到这个
8.4/main (port 5433): down
9.1/main (port 5432): down
9.2/main (port 5434): online
当我尝试连接到9.2版本使用psql -U postgres template1
我得到以下错误
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
我能做些什么来得到这个工作?希望能够听到你们的声音。
题外话。这不是一个编程问题。请参阅:http://dba.stackexchange.com –
那么,***是***在本地运行的服务器,并接受在Unix域套接字“/var/run/postgresql/.s.PGSQL.5432”上的 连接?如果没有,请在连接字符串中指定主机名或IP地址。 –
@OldPro,谢谢你的提示。你的线索是我所需要的更少的错误片断。我已经发布了我所做的工作,以便在下面开展工作。 –