PostgreSQL12体验

1.建立数据库
D:\PostgreSQL\bin>initdb.exe -D D:\PostgreSQL\data -E UTF-8 -U postgres -W
2.启动数据库
pg_ctl -D "D:\PostgreSQL\data" -l logfile start
3.链接数据库
D:\PostgreSQL\bin>psql -U postgres
4.注册PG服务
pg_ctl register -N PostgreSQL -D D:\postgresql\datasql