Re: Transfer db from one port to another

From: "Charles Clavadetscher" <clavadetscher(at)swisspug(dot)org>
To: "'Killian Driscoll'" <killiandriscoll(at)gmail(dot)com>
Cc: "'Andreas Kretschmer'" <akretschmer(at)spamfence(dot)net>, "'pgsql-general'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transfer db from one port to another
Date: 2015-12-23 10:05:54
Message-ID: 020c01d13d69$8a3e1580$9eba4080$@swisspug.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: Killian Driscoll [mailto:killiandriscoll(at)gmail(dot)com]
Sent: Mittwoch, 23. Dezember 2015 11:02
To: Charles Clavadetscher <clavadetscher(at)swisspug(dot)org>
Cc: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>; pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: [GENERAL] Transfer db from one port to another

On 23 December 2015 at 10:58, Charles Clavadetscher <clavadetscher(at)swisspug(dot)org <mailto:clavadetscher(at)swisspug(dot)org> > wrote:

Hello Killian

>> I want to transfer my db with three schemas from port 5432 to port 5532 to use
>> within the bitnami stack. I have used pgAdmin to create a backup.sql and when
>> using pgAdmin to restore the .sql to port 5532 I get the following error
>
>Try it with plain pg_dump.
>
>pg_dump -h localhost -p 5432 -Fc <dbname> > dump.sql
>
>pg_restore -h localhost -p 5532 dump.sql
>
>I tried this, but nothing appears to happen when entering the commands. Attached is a screenshot of the shell window - what am I doing wrong?

This should be done from an OS shell, not from psql.

Do you mean Windows command prompt?

Yes

Bye
Charles

(untestet, please read *before* the documentation)

I think, this should work. No idea what's wrong with pgAdmin, not using
that.

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org <mailto:pgsql-general(at)postgresql(dot)org> )
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2015-12-23 10:07:03 Re: Transfer db from one port to another
Previous Message Killian Driscoll 2015-12-23 10:02:09 Re: Transfer db from one port to another