windows - 在用户文件夹中安装 PostgreSQL 数据

标签 windows postgresql service installation

我正在尝试在我的计算机上安装 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/

相关文章:

C++ MFC : How to open immediately a secondary dialog after the first modal dialog was created

windows - 没有代理的本地机器上的多对多消息传递

postgresql - 如何启用 PostgreSQL 函数分析器?

sql - PostgreSQL 如何添加 WHERE where is count() 和 GROUP

javascript - Angular : Resetting Factory or Service

service - 在Windows 7用户登录之前运行批处理文件以启动VLC Web界面

java - android oreo 上的永久服务

java - 仅在为Android编译时才编译源代码?

Android ADB - 无法识别 LG G Pad (VK810)

sql - SQL中两列的平均值