agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Shashank Dutt Jha <shashank.dj@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Create db fails using utility tool
Date: Thu, 4 Feb 2016 10:04:33 -0800
Message-ID: <56B392B1.3010608@aklaver.com> (raw)
In-Reply-To: <649F207B-457F-4DC7-8770-CB5E7E467C4F@gmail.com>
References: <CAKkUp98EVUVpttXj90vKWsD+n2j5=i-SfEnqxdvereyncJvSHg@mail.gmail.com>
	<56B37EF8.7030904@aklaver.com>
	<649F207B-457F-4DC7-8770-CB5E7E467C4F@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

On 02/04/2016 09:45 AM, Shashank Dutt Jha wrote:
> Yes server is running on the local host and default port. I can connect to it using UI pgsql client

Do you mean pgAdmin or the SQL shell command?

In either case are you running createdb.exe on the same machine?

What happens if you run createdb.exe with explicit options:

createdb.exe -h localhost -p 5432 -U <some_superuser>

>
>
>
>> On Feb 4, 2016, at 10:10 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>
>>> On 02/03/2016 11:23 PM, Shashank Dutt Jha wrote:
>>> c:\Program Files\PostgreSQL\9.5\bin>createdb.exe testdb
>>> createdb: could not connect to database template1: could not connect to
>>> server:
>>> Connection refused (0x0000274D/10061)
>>>          Is the server running on host "localhost" (::1) and accepting
>>>          TCP/IP connections on port 5432?
>>> could not connect to server: Connection refused (0x0000274D/10061)
>>>          Is the server running on host "localhost" (127.0.0.1) and accepting
>>>          TCP/IP connections on port 5432?
>>
>>
>> Well the error is pretty specific, so is the server running and if so does it have the parameters set as above?
>>
>>
>>
>> --
>> Adrian Klaver
>> adrian.klaver@aklaver.com
>


-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (6+ messages)  latest in thread

Message-ID: <56B392B1.3010608@aklaver.com>
Permalink:  ../56B392B1.3010608@aklaver.com/
Also on:    postgresql.org/message-id/56B392B1.3010608@aklaver.com

reply

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-sql@postgresql.org
  Cc: adrian.klaver@aklaver.com, shashank.dj@gmail.com
  Subject: Re: Create db fails using utility tool
  In-Reply-To: <56B392B1.3010608@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox