Reputation: 4178
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?
Thanks in advance
Upvotes: 20
Views: 63471
Reputation:
In addition to what Nirmal wrote, what I usually do:
c:\Program Files
as that is not writeable for a regular user. You should create this e.g. in %APPDATA%pg_ctl
as mentioned by Nirmal (and described in the manual). pg_ctl register ...
to create a Windows service to automatically start Postgres.Upvotes: 11
Reputation: 12054
use pgsql bundle zip so u know actual path that not requires installation
initialize database
initdb.exe <datafolderpath>
init.db & pg_ctl is under
pgsql/bin
start database
"pg_ctl" -D "<datafolderpath>" -l logfile start
Upvotes: 36