PostgreSQL

Installtion

Download

EnterpriseDB

Init DB

initdb -D /user/share/data --encoding=UTF8 --no-locale --username=dailey --pwprompt

Start

pg_ctl start -D "/user/share/data" -l logfile 

Register Service

## 注册为windows服务
pg_ctl.exe register -D G:\pgsql\data -N PgSql

Stop

pg_ctl stop -D "/user/share/data"