On 09/09/2013 05:55 AM, fumihisa.suzuki@justsystems.com wrote:
> Hello,
>
> initdb fails as follows:
>
> initdb.exe -A md5 -D "C:\Program Files\...\postgresql\data" -E UTF-8 --
> locale C -U postgres --pwfile="C:\Program Files\...\postgresql\pwfile.
> txt"
> The files belonging to this database system will be owned by user "
> u00001".
> This user must also own the server process.
> The database cluster will be initialized with locale C.
> The default text search configuration will be set to "english".
> fixing permissions on existing directory C:/Program Files/.../
> postgresql/data ... ok
> creating subdirectories ... ok
> selecting default max_connections ... 10
> selecting default shared_buffers ... 400kB
> creating configuration files ... ok
> creating template1 database in C:/Program Files/.../postgresql/data/
> base/1 ... child process exited with exit code 5
> initdb: removing contents of data directory "C:/Program Files/.../
> postgresql/data"
>
> Wwhat does the exit code 5 mean?
http://www.symantec.com/connect/articles/windows-system-error-codes-exit-codes-description
5 Access is denied.
My guess, a permissions problem on C:\Program Files\...\postgresql\data.
>
> Best regards,
> Fumihisa Suzuki
>
>
--
Adrian Klaver
adrian.klaver@gmail.com