lark

next

Code Create Life
telegram
tg_channel
x
github
zhihu
email
follow

Win 11 Postgresql 16 安装失败

主要遇到以下两个问题

一个是在安装时报错

Problem running post-install step. Installation may not complete correctlyThe database cluster initialisation failed.

一个是在初始化时报错

The program "postgres" was found by "initdb" but was not the same version as initdb.

出现问题的原因是曾经修改过 cmd 的编码格式

解决步骤:

  1. win+R

  2. 输入 regedit

  3. 找到 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor

  4. 将 Autorun 置空
    image

  5. 重新安装 Postgresql

参考:https://stackoverflow.com/questions/54631443/win-10-postgresql-11-database-cluster-initialisation-failed

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.