C:\PostgreSQL和C:\PostgreSQL\data都有完全访问和管理权限的postgres用户。
我从postgres用户处运行PostgreSQL9.1.2-1-windows.exe作为管理员。目标C:\PostgreSQL
每一次尝试,我都会得到“数据库集群初始化失败”。
问题
我正在尝试设置PostGIS来使用GeoDjango。
我能够手动安装PostGIS。我和PostgreSQL都是新手,我对这一切都有信心危机。第一次从MySQL到PostgreSQL。
来自C:\Users\Larry\AppData\Local\Temp\install-postgresql.log:的相关日志输出
WScript.Network initialized...
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Ensuring we can read the path C: (using icacls) to Larry:
Executing batch file 'radA3CF7.bat'...
Output file does not exists...
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Ensuring we can read the path C:\PostgreSQL (using icacls) to Larry:
Executing batch file 'radA3CF7.bat'...
Output file does not exists...
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Ensuring we can read the path C:\PostgreSQL\data (using icacls) to Larry:
Executing batch file 'radA3CF7.bat'...
Output file does not exists...
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Ensuring we can write to the data directory (using icacls) to Larry:
Executing batch file 'radA3CF7.bat'...
Output file does not exists...
Failed to ensure the data directory is accessible (C:\PostgreSQL\data)
Executing batch file 'radA3CF7.bat'...
Output file does not exists...
Called Die(Failed to initialise the database cluster with initdb)...
Failed to initialise the database cluster with initdb有什么建议吗?
发布于 2012-08-08 07:06:57
我在Windows7上安装9.1.4时也遇到了同样的问题,我设法找到了一个在线解决方案。
我遵循的步骤是:
发布于 2013-10-11 20:47:05
在试图安装9.2.4时,我也收到了相同的错误消息。我的问题是,即使Win2k8服务器有%SYSTEMROOT%\system32 32作为路径的一部分,但是没有程序能够“看到”C:\Windows\system32 32中的任何内容。安装程序在init例程中大量使用icacls.exe。由于我的道路被搞砸了,安装程序就爆炸了。
一旦我显式地将C:\Windows\SYSTEM 32添加到系统的Path环境变量中,并作为管理员重新运行安装程序,一切就都正常了。
发布于 2013-03-18 03:51:02
在我的例子中(正如我在postgresql.log的%temp%文件夹中看到的那样),这是因为安装程序无法找到doskey.exe,即使c:\ windows \system32 32文件夹的路径是在windows的环境变量路径中给出的。
因此,我打开一个命令提示符,输入set PATH=%PATH%;c:\windows\system32并从命令提示符本身运行安装程序。成功了!:)
https://dba.stackexchange.com/questions/10241
复制相似问题