在安装 PostgreSQL 时,我不断收到消息:
“运行安装后步骤时出现问题。安装可能无法正确完成数据库集群初始化失败。”
这似乎阻止我正确使用 PGadmin。
在安装日志中,我发现以下部分似乎表明出了什么问题。
我一直无法找到解决此问题的方法。
Executing batch file 'rad7C33E.bat'...
The program "postgres" was found by "C:/Program Files/PostgreSQL/11/bin/initdb.exe"
but was not the same version as initdb.
Check your installation.
Called Die(Failed to initialise the database cluster with initdb)...
Failed to initialise the database cluster with initdb
Script stderr:
Program ended with an error exit code
Error running cscript //NoLogo "C:\Program Files\PostgreSQL\11/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Users\JesseDanckaarts\AppData\Local\Temp/postgresql_installer_6f373c7c91" "C:\Program Files\PostgreSQL\11" "C:\Program Files\PostgreSQL\11\data" 5432 "Dutch,Netherlands" 0: Program ended with an error …
Run Code Online (Sandbox Code Playgroud)