postgresql installation failed

后端 未结 21 1532
你的背包
你的背包 2020-12-24 08:05

I tried to install postgresql 8.4 in my windows 7 (64 bit). But it fails with following messages in log

Initialising the database cluster (this may take a few min         


        
21条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 08:46

    Struggling with this problem for days. Finally got help from the EDB team My problem got solved by doing the following steps :

    1) Open the command prompt and go to the following directory:

    cd "C:\Program Files\PostgreSQL\10\bin"

    2) Once you are inside this "C:\Program Files\PostgreSQL\10\bin" directory execute the following command:

    .\initdb.exe -D "C:\Program Files\PostgreSQL\10\data"

    3) At the end of this command you will be promoted to execute a pg_ctl command to start the Postgres cluster. Please execute the command and once you get a message as the server started you are all set to use the Postgres database.

    Note: Instead of 10 user whatever version you have installed. If the pg_ctl command in the third step gives an error after running it in \bin directory, then try running it in \data directory. After the above process re-run the installer.

提交回复
热议问题