postgresql installation failed

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

    I had the same problem today when installing postgres 9.6.19 on windows 10. Solution: Neither the installation path nor the windows path variable may contain a blank! Near to the end of the installer log file (found in wondows %temp% dir with a name like bitrock_installer_16156.log) i found:

    Script stderr: "\UnxUtils\usr\local\wbin\";"C:\Program" kann syntaktisch an dieser Stelle nicht verarbeitet werden.

    where the installation directory i set as well as my windows %PATH% variable contained

    C:\Program Files\
    

    Workaround: open a command prompt as administrator and type:

    set path=C:\WINDOWS\system32
    PostgreSQL-9.6.10-1-win64-bigsql.exe
    

    And then of course choose a path not containing a blank. That did it for me.

    0 讨论(0)
  • 2020-12-24 08:22

    I had the same problem when trying to install PostgreSQL 9.6.2 on a Windows 7 32 bit machine,but i got solution,first just uninstall the installed postgres,then delete the postgres folder from 'c' drive,delete the entry from temp file which resides in "C:\Users\AppData\Local\Temp".Then again installed postgres 9.6.2 that installed successfully.

    0 讨论(0)
  • 2020-12-24 08:25

    I had the same problem when trying to install PostgreSQL 9.3.5-3 on a Windows 7 x64 machine (not joined to a domain) in a folder, created on the root, with full access to everybody. The problem was solved by not using ä in my password, so avoid using non-English characters in your password.

    0 讨论(0)
  • 2020-12-24 08:27

    Had this same problem trying to install on my company computer (PC running Windows 7). If you are not admin on your computer, you need to install it within your personal "User" folder (not in the "Program Files" folder(s) at the root).

    If you still can't access Postgres:

    Once you'd installed it under your "User" folder, use the 'Run' program and type in "services.msc" and hit enter. In the window that pops up, go down to your postgres installation, right-click and go to "properties". In the "Log On" tab, select "Local System account" then go back to the "General" tab and click "Start". It should boot after that.

    After this, I was able to run "pgAdmin" and access the database (after entering the password I used during installation).

    0 讨论(0)
  • 2020-12-24 08:28

    After some struggle I came across this post. I struggled some more time and I think I finally figured it out with the help of all the invaluable input from my predecessors in this post.

    My case

    • It's November 2018.
    • PostgreSQL 11.1 Winodws-x64 from EnterpriseDB as suggested by postgresql.org
    • Tried to install on Windows 10 (both Home and Professional)

    I tried several constellations and boiled down the process to this:

    Pre-installation

    • Uninstall any failed installations.
    • Add a local user "postgres" (lowercase worked for me) to your computer, assign a SIMPLE password and administrative rights. Do avoid special characters at all expenses, stick with english letters (upper and lowercase) and numbers only.
    • Add a folder on your computer OUTSIDE the "C:\Program Files" or Windows folder. I chose C:\PostgreSQL
    • Assign full control over the above folder to the postgres account.

    Installation

    • Run the installer (postgresql-11.1-1-windows-x64.exe in my case)
    • use the above password and folder when prompted (not the default folder)

    Post-installation

    • For security reasons you should now assign a proper password to the windows-user "postgres" and remove administrative rights from the account.
    • Test your installation by running pgAdmin and connecting to your server. However, the password for the postgres user you need to connect to the server will still be the simple one you used earlier. You may change it within pgAdmin by selecting the postgres database left, choose Tools -> Query Tool and type ALTER USER postgres WITH PASSWORD '4wligzo748o$%&'; or whatever. Execute with the flash symbol or F5.

    But maybe this is wrong altogether and you should rather run a linux vm with postgreSQL server.

    0 讨论(0)
  • 2020-12-24 08:29

    I got the same result installing "postgresql-9.2.3-1-windows-x64.exe" on Windows 7 Enterprise and the problem get solved when I change the installation path.

    Try to install into "c:\postgresql" instead of "c:\program files\Postgresql"

    Good luck

    0 讨论(0)
提交回复
热议问题