postgresql server start and then immediately stop

postgresql server start and then immediately stop,第1张

概述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 use

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 user with a password you can remember

net user /add postgres <password>

Add the postgres user to the administrators group

net localgroup administrators postgres /add

Add the postgres user to the Power Users group

net localgroup "power users" postgres /add

Run a command window as the postgres user

runas /user:postgres cmd.exe

Run the install file from within the command window.

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

This should run the installation successfully.

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全部内容,希望文章能够帮你解决postgresql server start and then immediately stop所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/sjk/1163567.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)

保存