码迷,mamicode.com
首页 > 数据库 > 详细

postgresql server start and then immediately stop

时间:2018-09-12 14:00:39      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:1.4   command   let   The   emma   .com   initial   weight   ofo   


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

The steps I followed are:

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

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

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

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

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

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

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

    This should run the installation successfully.

  8. Remove the postgres user from the Administrators group.

    net localgroup administrators postgres /delete

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

 

postgresql server start and then immediately stop

标签:1.4   command   let   The   emma   .com   initial   weight   ofo   

原文地址:https://www.cnblogs.com/tank-/p/9634248.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!