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.

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

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

时间: 2024-10-19 11:35:55

postgresql server start and then immediately stop的相关文章

PostgreSQL Server进程检查启动脚本

检测到PostgreSQL Server进程 down 的时候启动,running状态无动作 # more pg_server_check.sh #!/bin/sh export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin prefix=/etc/init.d DAEMON="$prefix/postgresql" RUNN_STR="server is running" Pg_

PostgreSQL相关的软件,库,工具和资源集合

PostgreSQL相关的软件,库,工具和资源集合. 备份 wal-e - Simple Continuous Archiving for Postgres to S3, Azure, or Swift by Heroku Barman - Backup and Recovery Manager for Postgres by 2ndQuadrant GUI pgAdmin - Postgres Administration and Management GUI phpPgAdmin - The

【PostgreSQL学习之旅】第一篇:Linux和Windows下安装PostgreSQL9.4

一.简介 PostgreSQL是目前世界上最丰富的数据类型的支持,其中有些数据类型可以说连商业数据库都不具备, 比如 IP 类型和几何类型等:其次,PostgreSQL 是全功能的自由软件数据库,很长时间以来,PostgreSQL 是唯一支持事务.子查询.多版本并行控制系统(MVCC).数据完整性检查等特性的唯一的一种自由软件的数据库管理系统. 二.Linux下安装 1) 环境:RedHat Enterprise 6.5 x64(2.6.32-431.el6.x86_64) PostgreSQL

.NET的EF+POSTGRESQL事项。

Entity Framework 6连接Postgresql.SQLite.LocalDB的注意事项和配置文件 - 玄离 时间 2014-09-03 01:05:00  博客园精华区原文  http://www.cnblogs.com/znlgis/p/3952673.html Postgresql Postgresql支持Code First的方式自动生成表,不过默认的模式是dbo而不是public,而且还可以自动生成自增主键. <?xml version="1.0" enco

How to debug PostgreSQL function with pgAdminIII

How to debug plpgsql with pgAdminIII [[email protected] soft_bak]# git clone git://git.postgresql.org/git/pldebugger.git Initialized empty Git repository in /opt/soft_bak/pldebugger/.git/ remote: Counting objects: 445, done. remote: Compressing objec

gearman with postgresql as persistent Queuing

gearman is a good thing gearman client --------------> gearman server <------------------------gearman worker clients are requesting to handler something, gearman server is delivering jobs gearman workers get some jobs and finish. So different progr

CentOS 7 安装 PostgreSQL

参考:http://blog.csdn.net/lk10207160511/article/details/50359549##1 1.检查本机是否安装 PostgreSQL $ sudo rpm -aq | grep postgresql 2.从仓库中安装 PostgresSQL 搜索包名: $ yum search postgresql 列出包名,例如可能有: postgresql.i686 : PostgreSQL client programspostgresql.x86_64 : Po

Streaming replication slots in PostgreSQL 9.4

Streaming replication slots are a pending feature in PostgreSQL 9.4, as part of the logical changeset extraction feature. What are they for, what do you need to know, what changes? What are replication slots? Streaming replication slots are a new fac

Entity Framework 6连接Postgresql、SQLite、LocalDB的注意事项和配置文件

Postgresql Postgresql支持Code First的方式自动生成表,不过默认的模式是dbo而不是public,而且还可以自动生成自增主键. <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <!-- For more information on Entity Framework configuration, vis