[英]How to manually configure and start PostgreSQL on windows?
I have application that use mysql database, but now i need to port it to postgres... In my current installation i have embedded mySQL binaries, and i manually change my.ini file to change default location of mysql server to apppath, install mySQL服务并启动它...在 PostgreSQL 中是否可能(以及如何)?
提前致谢
使用 pgsql 包 zip 所以你知道不需要安装的实际路径
初始化数据库
initdb.exe <datafolderpath>
init.db & pg_ctl 在
pgsql/bin
启动数据库
"pg_ctl" -D "<datafolderpath>" -l logfile start
除了 Nirmal 写的,我通常会做的事情:
c:\Program Files
中,因为它对于普通用户是不可写的。您应该在例如 %APPDATA% 中创建它pg_ctl
启动服务器(并在手册中描述)。pg_ctl register...
创建一个 Windows 服务来自动启动 Postgres。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.