postgresql server start and then immediately stop


I had the same issue installing 9.1.4 on Windows 7. I managed to find a solution online that worked.html

The steps I followed are:sql

  1. Uninstall PostgreSQL
  2. Delete the postgres user if it still exists.windows

    net user postgres /delete
  3. Create the postgres user with a password you can rememberpost

    net user /add postgres <password>
  4. Add the postgres user to the Administrators groupflex

    net localgroup administrators postgres /add
  5. Add the postgres user to the Power Users groupspa

    net localgroup "power users" postgres /add
  6. Run a command window as the postgres userpostgresql

    runas /user:postgres cmd.exe
  7. Run the install file from within the command window.code

    C:\Download\postgresql-9.1.4-1-windows.exe

    This should run the installation successfully.orm

  8. Remove the postgres user from the Administrators group.htm

    net localgroup administrators postgres /delete

 源連接:https://dba.stackexchange.com/questions/10241/postgresql-the-database-cluster-initialization-failed

相關文章
相關標籤/搜索