我正在尝试在我的计算机上安装 PostgreSQL(版本 9.4.5-2 x64),我想将数据放入我的用户文件夹中。我认为以后卸载Postgre甚至格式化程序分区时不要丢失数据会更好。
问题是它不会启动 PostgreSQL 服务,即使使用管理员配置文件也是如此。它显示一条消息:无法将 SQL 模块加载到数据库集群中。
,可能是因为它无法启动服务。
我尝试了很多不同的文件夹,甚至更改了一些权限也无法做到这一点。最好的选择是将它放在程序数据文件夹中。我可以做些什么来将其放入本地用户应用程序数据或我的文档文件夹中?
问候, 莱安德罗
最佳答案
您是否尝试过 this question 中的解决方案? ?
1) Create a new user account, called postgres
2) Add the new account to the Administrators and Power Users groups
3) Restart the computer
4) Run a command prompt as the postgres user, using the command:
runas /user:postgres cmd.exe
5) Run the installer from the postgres command window
6) Delete the postgres user account, as well as the user directory
关于windows - 在用户文件夹中安装 PostgreSQL 数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34089961/