我按照说明安装 Ubuntu 10.04PostgreSQL的
$ psql
或这个:
lucid@ubuntu:~$ sudo -u postgres psql postgres
[sudo] password for lucid:
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"?
有人知道解决办法吗?
答案1
我相信命令应该是
sudo -u postgres psql postgres
看https://help.ubuntu.com/community/PostgreSQL
如果这不起作用,请告诉我们有关您的配置的更多信息。