Home > Database > Mysql Tutorial > PostgresQL基本使用

PostgresQL基本使用

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 14:58:52
Original
1494 people have browsed it

PostgresQL基本使用 从官网下载PostgreSQL的安装包,执行安装,一般安装完成后会在windows的服务里面创建出一个新的服务,可以直接启动,如果服务没有创建成功,就要通过命令行来启动了。 我的PG安装在D:\work\DB\PostgreSQL\9.2 执行bin目录下的initdb.exe

PostgresQL基本使用

 

从官网下载PostgreSQL的安装包,执行安装,一般安装完成后会在windows的服务里面创建出一个新的服务,可以直接启动,如果服务没有创建成功,就要通过命令行来启动了。

 

我的PG安装在D:\work\DB\PostgreSQL\9.2

执行bin目录下的initdb.exe 需给出数据文件目录,比如D:\work\DB\PostgreSQL\9.2\mydata,这个只需要第一次使用的时候执行就可以了。

 

接着执行pg_ctl start -D "D:\work\DB\PostgreSQL\9.2\mydata" 就可以启动数据库了。

 

然后执行PGAdmin3命令就可以打开一个简单的图形控制台,可以方便的杳看数据和执行sql.

 

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template