加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql server start and then immediately stop

发布时间:2020-12-13 16:11:17 所属栏目:百科 来源:网络整理
导读: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: Uninstall PostgreSQL Delete the postgres user if it still exists. net user postgres / delete Create the postgres

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:Downloadpostgresql-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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读