103 字
1 分钟
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 的编码格式
解决步骤:
- win+R
- 输入 regedit
- 找到
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor - 将 Autorun 置空

- 重新安装 Postgresql
Win 11 Postgresql 16 安装失败解决方案
https://blog.xbxin.com/posts/trouble/troubleshooting-postgresql-16-installation-on-windows-11/