From: Kent Tong <kent@cpttm.org.mo>
To: pgsql-bugs@postgresql.org
Subject: error reading c:\Program Files\PostgreSQL\8.3\data\postgresql.conf during installation
Date: Thu, 22 Jan 2009 16:02:24 +0800
Message-ID: <49782810.9050309@cpttm.org.mo> (raw)
Package: One click installer of PostgreSQL 8.3
Env: Windows XP SP2 (Traditional Chinese)
What's wrong:
It says error reading c:\Program
Files\PostgreSQL\8.3\data\postgresql.conf during installation. That
data directory is empty. Obviously, you can't start the server
later.
Fix:
This error is caused by the failure of initdb in creating a DB. It
fails probably due to the locale. To fix the problem:
runas /user:postgres cmd
c:
cd "\Program Files\PostgreSQL\8.3\bin"
initdb -D "c:\Program Files\PostgreSQL\8.3\data" -E UTF8
--locale=English
It is very important that you specify the encoding and the locale.
Otherwise it will fail and report that the locale is invalid.
--
Kent Tong
SME accounting software package for just MOP30.
See
http://www.cpttm.org.mo/index_c.php?pg=cpttm/department/is/ispu/accsys/index.htm
for more.
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: kent@cpttm.org.mo
Subject: Re: error reading c:\Program Files\PostgreSQL\8.3\data\postgresql.conf during installation
In-Reply-To: <49782810.9050309@cpttm.org.mo>
References: <49782810.9050309@cpttm.org.mo>
* 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