双方C:\PostgreSQL
并C:\PostgreSQL\data
拥有postgres
完全访问和管理权限的用户。
我以管理员身份从postgres用户运行了postgresql-9.1.2-1-windows.exe。目标C:\PostgreSQL
我尝试的每种方式都得到“数据库集群初始化失败”。
问题
- 是否可以在不作为Windows服务的情况下运行所有程序?
- 有作为Windows服务安装的解决方法吗?
我正在尝试设置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
有什么建议吗?