0

I followed an instruction on how to setup Ubuntu 10.04 with PostgresSQL

$ psql

Or this:

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"?

Anyone knows a solution?

1

1 Answer 1

0

I believe the command should be

sudo -u postgres psql postgres

See https://help.ubuntu.com/community/PostgreSQL

If that does not work, tell us more about your configuration.

2

Not the answer you're looking for? Browse other questions tagged .