Jes*_*sse 2 postgresql installation
在安装 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 exit code
Problem running post-install step. Installation may not complete correctly
The database cluster initialisation failed.
Executing icacls "C:\Users\JesseDanckaarts\AppData\Local\Temp/postgresql_installer_cb3c83cf49" /inheritance:r
Script exit code: 0
Run Code Online (Sandbox Code Playgroud)
到目前为止,我已经尝试了以下没有运气的方法:
还有很多!
如果有人知道可能是什么问题,我将不胜感激!
小智 6
从StackOverflow交叉发布:
我刚刚为此苦苦挣扎了几个小时,所以我将这个发布给其他任何人。
最初,我只能在pgsql-bugs
邮件列表中找到两个错误报告:
BUG #15856:程序“postgres”由“initdb”找到,但与 initdb 的版本不同。
BUG #15970:数据库初始化错误 - initdb.exe 和 postgres 版本不同
具体症状是:
The program "postgres" was found by ".../initdb.exe" but was not the same version as initdb.
Run Code Online (Sandbox Code Playgroud)
尽管版本匹配,但您会得到:
C:\Program Files\PostgreSQL\11\bin>postgres -V
WARNING: 01000: could not determine encoding for locale
"<some encoding>.utf8": codeset is "CPutf8"
Run Code Online (Sandbox Code Playgroud)
如果这些是您的症状,则问题在于您将区域/语言设置设置为使用 UTF-8(测试版设置)。这会导致许多程序出现问题,PostgreSQL 就是其中之一。禁用它并重新安装,你应该没问题。
归档时间: |
|
查看次数: |
7465 次 |
最近记录: |