From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: anuradha devi <anura19@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pgdump
Date: Fri, 8 Dec 2006 07:25:14 +0530
Message-ID: <a97c77030612071755g3b0c307fg8921914b6b6f2404@mail.gmail.com> (raw)
In-Reply-To: <693379.46863.qm@web90510.mail.mud.yahoo.com>
References: <693379.46863.qm@web90510.mail.mud.yahoo.com>
On 12/8/06, anuradha devi <anura19@yahoo.com> wrote:
> Hi
> I have a pgdump.sql file and i want to restore it.The postgreSQL database
> server is running and i issue the command psql -U postgres pgdump.sql in the
> command prompt.
> i get the following error.
> C:\Program Files\PostgreSQL\8.2\bin>psql -U postgres pgdump.sql
> psql: could not connect to server: Invalid argument (0x00002726/10022)
> Is the server running on host "???" and accepting
> TCP/IP connections on port 5432?
Hi,
This error means the psql client is not able to connect to the server
that (may or maynot) be running in the machine. Make sure that
the server is running. see if the process postmaster is running.
once the server is running the command to restore is
the command to run a sql script file is :
psql -U postgres -f pgdump.sql
(you missed the -f)
Regds
mallah.
> Thanks
> Anuradha
>
>
> ________________________________
> Everyone is raving about the all-new Yahoo! Mail beta.
>
>
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-admin@postgresql.org
Cc: mallah.rajesh@gmail.com, anura19@yahoo.com
Subject: Re: pgdump
In-Reply-To: <a97c77030612071755g3b0c307fg8921914b6b6f2404@mail.gmail.com>
References: <693379.46863.qm@web90510.mail.mud.yahoo.com> <a97c77030612071755g3b0c307fg8921914b6b6f2404@mail.gmail.com>
* 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