From: Tommy Gildseth <tommy.gildseth@usit.uio.no>
To: Jaisen N.D. <jaisuvyas@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem:- createdb: could not connect to database postgres: could not connect to server: No such file or directory
Date: Sat, 12 Apr 2008 10:52:47 +0200
Message-ID: <4800785F.2080804@usit.uio.no> (raw)
In-Reply-To: <7db916da0804112227p5b523629m18c949abf41c1f02@mail.gmail.com>
References: <7db916da0804112227p5b523629m18c949abf41c1f02@mail.gmail.com>
Jaisen N.D. wrote:
> postgres@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@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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tommy.gildseth@usit.uio.no, jaisuvyas@gmail.com
Subject: Re: Problem:- createdb: could not connect to database postgres: could not connect to server: No such file or directory
In-Reply-To: <4800785F.2080804@usit.uio.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox