如何在Windows上手动配置和启动PostgreSQL? [英] How to manually configure and start PostgreSQL on windows?

查看:521
本文介绍了如何在Windows上手动配置和启动PostgreSQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有应用程序使用mysql数据库,但现在我需要将它移植到postgres ...
在我目前的安装,我嵌入了mySQL二进制文件,我手动更改my.ini文件更改默认位置mysql服务器到apppath,安装mySQL服务并启动它...
在PostgreSQL中这是可能的(和如何)?

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 service and start it... Is this possible (and how) in PostgreSQL?


推荐答案

使用pgsql捆绑包zip,因此你知道不需要安装的实际路径

use pgsql bundle zip so u know actual path that not requires installation

数据库

initdb.exe <datafolderpath>

init.db& pg_ctl在

init.db & pg_ctl is under


pgsql / bin

pgsql/bin

start database

start database

"pg_ctl" -D "<datafolderpath>" -l logfile start

这篇关于如何在Windows上手动配置和启动PostgreSQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆