---
title: "Postgresql Windows 下安装启动"
author: "hanyoud"
date: "2008-05-02T15:45:24Z"
tags: ["PostgreSQL", "Windows"]
slug: "postgresql-windows"
draft: false
lastmod: "2008-05-02T15:45:24Z"
id: 188850
url: "https://hanyoud.iteye.com/blog/188850"
---

安装 启动备忘

1.在 Postgresql 官网下载最新数据库软件(win no-install);

2.add user (should not be in administrator group)  'postgres';

3.cmd:

```
runas /profile /env /user:postgres "cmd"
```

4\.

```
initdb -E utf8 D ../data
```

5\.

```
postgres -D ../data
```