postgresql installation failed

后端 未结 21 1485
你的背包
你的背包 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:38

    Solution:

    • Uninstall PostgreSQL

    • Run command: net user postgres /delete

    • Click: Control Panel -> User Accounts -> Configure advanced user profile properties -> delete all “Unknown User” instances that seem to be left from PostgreSQL installation.

    • Run: compmgmt.msc -> Click Local Users and Groups -> Users -> New User… -> User name: postgres, Password: postgrespass -> Create

    • Run: compmgmt.msc -> Click Local Users and Groups -> Users -> postgres ->Member of -> Add… -> Administrators -> OK

    • copy the PostgreSQL installer postgresql-8.4.9-1-windows.exe to C:\

    • Run: runas /user:postgres cmd.exe -> cd \ -> postgresql-8.4.9-1-windows.exe -> installed successfully without errors. Checked data folder and confirmed files created successfully.

    • Run: compmgmt.msc -> Local Users and Groups -> Users -> postgres -> Member of -> Administrators -> Remove

    • Run: compmgmt.msc -> Local Users and Groups -> Users -> postgres -> Member of -> Add… -> Power Users -> OK

提交回复
热议问题