Fwd: No connection could be made because the target machine actively refused it... - Mailing list pgsql-novice

From Frank Moore
Subject Fwd: No connection could be made because the target machine actively refused it...
Date
Msg-id CAP=uVxQm5BUWP4KBbUbbwSji2YJa-FR6i8RCo-m1svKCw9Oqqg@mail.gmail.com
Whole thread Raw
In response to Re: No connection could be made because the target machine actively refused it...  (Amit Langote <amitlangote09@gmail.com>)
List pgsql-novice
Hi Amit,

Yes, you're absolutely right. I was running the commands in psql rather than the shell.
It wasn't obvious from the tutorial that I was following that I was supposed to run the pg_restore command from the shell and not psql.
Strange that running that command in psql never gave me any form of error and that the log was showing an error of 'No connection could be made because the target machine actively refused it'.
Anyway, I can run queries now and I'm starting to get acquainted with the environment, so thanks very much for your help.

Regards,
Frank.


---------- Forwarded message ----------
From: Amit Langote <amitlangote09@gmail.com>
Date: 31 May 2013 05:10
Subject: Re: [NOVICE] No connection could be made because the target machine actively refused it...
To: Frank Moore <francis.moore@gmail.com>
Cc: "pgsql-novice@postgresql.org" <pgsql-novice@postgresql.org>


> postgres# CREATE DATABASE dvdrental;
> postgres# pg_restore --dbname=dvdrental --verbose dvdrental.tar
>

It appears that you are running pg_restore inside psql. Have you tried
running it in shell and not psql?


--
Amit Langote

pgsql-novice by date:

Previous
From: Amit Langote
Date:
Subject: Re: No connection could be made because the target machine actively refused it...
Next
From: Merlin Moncure
Date:
Subject: Re: Copy to Csv file extremely slow