Presentation is loading. Please wait.

Presentation is loading. Please wait.

PostgreSQL的配置要点 Tianqing Zhang School of Computer (School of Software)

Similar presentations


Presentation on theme: "PostgreSQL的配置要点 Tianqing Zhang School of Computer (School of Software)"— Presentation transcript:

1 PostgreSQL的配置要点 Tianqing Zhang School of Computer (School of Software)

2 解压postgresql-9.1.10-1-windows-binaries到目标路径(如:c:\pgsql)

3 2. 系统环境变量Path中增加c:\pgsql\bin

4 3. 在cmd命令窗中进入目录c:\pgsql,输入命令initdb --locale=C -E utf-8 -D c:/pgsql/data

5 Tips 如果用户名为中文可能会报编码错误!
解决办法,增加一个普通用户,如postgres,以该用户的身份进入命令窗口执行上面的initdb命令。

6 4.登记服务。在windows管理员cmd窗中输入命令pg_ctl register -N postgres -D c:/pgsql/data

7 5.系统服务中出现postgres服务

8 6. Postgres服务启动后,即可在cmd命令窗中输入命令psql postgres进入postgreSQL客户端工具

9 不登记服务启动数据库 直接用pg_ctl –D data start –l logfile启动数据库服务器

10


Download ppt "PostgreSQL的配置要点 Tianqing Zhang School of Computer (School of Software)"

Similar presentations


Ads by Google