From: | Shashank Dutt Jha <shashank(dot)dj(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Create db fails using utility tool |
Date: | 2016-02-05 04:15:13 |
Message-ID: | CAKkUp99qNjSdjkN6VjxYxp=-p97P1_PFZ52iS368m+2ayFotuQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
pgAdmin tool.
Yes running both on same machine.
With explicit options, as suggested, it is able to create db.
Thanks for help
On Thu, Feb 4, 2016 at 11:34 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:
> 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(dot)klaver(at)aklaver(dot)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(dot)klaver(at)aklaver(dot)com
>>>
>>
>>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2016-02-05 06:08:53 | Re: Create db fails using utility tool |
Previous Message | Michael Moore | 2016-02-04 19:19:22 | Re: update without SET ? |