From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: dsge94@outlook.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: [HELP] Unable to initiate database cluster
Date: Fri, 09 Aug 2019 16:42:01 +0900 (Tokyo Standard Time)
Message-ID: <20190809.164201.198844207.horikyota.ntt@gmail.com> (raw)
In-Reply-To: <BN6PR03MB31720D98DD59B41083CA1364C4D60@BN6PR03MB3172.namprd03.prod.outlook.com>
References: <BN6PR03MB31720D98DD59B41083CA1364C4D60@BN6PR03MB3172.namprd03.prod.outlook.com>
Hello.
At Fri, 9 Aug 2019 03:14:29 +0000, "dsge94@outlook.com" <dsge94@outlook.com> wrote in
<BN6PR03MB31720D98DD59B41083CA1364C4D60@BN6PR03MB3172.namprd03.prod.outlook.com>
> I download the zip archives [Binaries from installer Version 11.4] from postgresql website (https://www.enterprisedb.com/download-postgresql-binaries) . The binaries are unzipped in the folder D:\pgsql.
>
> When I cd into folder D:\pgsql\bin and execute the following command
> >> .\initdb -D E:\path\to\my\data -U postgres -W
> I get an error. The error prompt is:
> The program "postgres" was found by "D:/pgsql/bin/initdb.exe"
> but was not the same version as initdb.
> Check your installation.
>
> But I check both the initdb.exe and postgres.exe, only to find that their versions are the same (11.4)
>
> Is there anything wrong with my configuration? What should I do?
The message means that postgres.exe is found in the same
directory, but it is not the same version with initdb. Maybe you
have copied the zip file partly onto existing installation of
maybe-older version of postgresql.
You will see what is wrong by running the commands with -V option
like this.
> .\initdb -V
initdb (PostgreSQL) 11.4
> .\postgres -V
postgres (PostgreSQL) 13devel
The versions must match exactly.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
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-bugs@postgresql.org
Cc: horikyota.ntt@gmail.com, dsge94@outlook.com
Subject: Re: [HELP] Unable to initiate database cluster
In-Reply-To: <20190809.164201.198844207.horikyota.ntt@gmail.com>
References: <BN6PR03MB31720D98DD59B41083CA1364C4D60@BN6PR03MB3172.namprd03.prod.outlook.com> <20190809.164201.198844207.horikyota.ntt@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