Re: Problem:- createdb: could not connect to database postgres: could not connect to server: No such file or directory

From: Tommy Gildseth <tommy(dot)gildseth(at)usit(dot)uio(dot)no>
To: "Jaisen N(dot)D(dot)" <jaisuvyas(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem:- createdb: could not connect to database postgres: could not connect to server: No such file or directory
Date: 2008-04-12 08:52:47
Message-ID: 4800785F.2080804@usit.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jaisen N.D. wrote:

> postgres(at)localhost:~$ /usr/lib/postgresql/8.1/bin/createdb test
> createdb: could not connect to database postgres: 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"?
> postgres(at)localhost:~$
> -----------------------------------------------------
> Why it can't connect to server? How can I resolve it??

Doublecheck to see what port PostgreSQL is running on. Debian is known
to put postgreSQL on non-standard ports, in order to make it possible to
run multiple versions of postgreSQL on the same machine.

--
Tommy Gildseth

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sam Morris 2008-04-12 09:48:44 Re: Problem:- createdb: could not connect to database postgres: could not connect to server: No such file or directory
Previous Message Jaisen N.D. 2008-04-12 05:27:28 Problem:- createdb: could not connect to database postgres: could not connect to server: No such file or directory