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

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。