pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ray O'Donnell <ray@rodonnell.ie>
To: Sourav Majumdar <souravmajumdar2002@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Connection refused (0x0000274D/10061)
Date: Sun, 9 Jun 2019 21:46:57 +0100
Message-ID: <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie> (raw)
In-Reply-To: <CAMHKnAnjv_CcLemuXmQEg1JVMFPDAfSO56UKOZhDEpqH-MZTXA@mail.gmail.com>
References: <CAMHKnAnc8E507d+WB1sUC7WUA8nJ1aRbyQF1K8VuEy_Qc5OJiw@mail.gmail.com>
	<669cf8ed-877e-4420-3b60-f4e112ad8208@rodonnell.ie>
	<CAMHKnAnjv_CcLemuXmQEg1JVMFPDAfSO56UKOZhDEpqH-MZTXA@mail.gmail.com>

On 09/06/2019 20:49, Sourav Majumdar wrote:
> Hello,
> Thanks for your quick response. I am new to pgsql, didnot configured it 
> , can you please give a guidance for that? I will be highly oblised if 
> you can assist me.
> I am using windows 8.1, 64 bit.
> ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
> Rails 5.2.3
> Trying to setup ruby on rails on my local host

Hi,

PostgreSQL's default port is 5432, and if the Postgres instance on your 
computer is the only one there then that's what it'll be listening on.

I don't know anything about Ruby or how you connect to PG from it, but 
you need to tell it to use port 5432.

Alternatively, if you really want to use port 3000, then you need to 
edit postgresql.conf and change the "port" setting there. You'll need to 
restart PG for this to take effect.

Either way, you need to connect to the port on which PG is listening.

Ray.

-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie





view thread (16+ messages)  latest in thread

Message-ID: <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie>
Permalink:  ../33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie/
Also on:    postgresql.org/message-id/33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ray@rodonnell.ie, souravmajumdar2002@gmail.com
  Subject: Re: Connection refused (0x0000274D/10061)
  In-Reply-To: <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie>
  References: <CAMHKnAnc8E507d+WB1sUC7WUA8nJ1aRbyQF1K8VuEy_Qc5OJiw@mail.gmail.com> <669cf8ed-877e-4420-3b60-f4e112ad8208@rodonnell.ie> <CAMHKnAnjv_CcLemuXmQEg1JVMFPDAfSO56UKOZhDEpqH-MZTXA@mail.gmail.com> <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie>

* 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