Portable PostgreSQL

Portable PostgreSQL

 

介绍

PostgreSQL Portable

PostgreSQLPortable is an open source database packaged as a portable app, so you can run a full PostgreSQL database on your iPod, USB flash drive, portable hard drive, etc. It has all the same features as PostgreSQL, plus, it leaves no personal information behind on the machine you run it on, so you can take it with you wherever you go.

PostgreSQLPortable 是一个开源的便携数据库APP,你可以运行一个完整的PostgreSQL数据库,这个数据库存放在你的ipod,U盘等移动存储设备,它拥有与PostgreSQL医院的特性。它不会存留任何个人的信息在你的运行它的机器上,你可以用移动存储设备随时带走。

 

Features

  • No installation required. Simply download, extract and run! 无需安装,下周解压立即使用。
  • Runs a complete PostgreSQL Server instance.运行一个完全的PostgreSQL实例;
  • Does not require a local "postgres" user account or administrator privileges, works for any user.不需要建立一个本地的 "postgres" 用户或者超级用户权限,可以用任何用户运行。
  • Completely portable - runs off a USB, cloud drive (DropBox, iCloud drive, OneDrive, etc) or hard drive.完全便携,运行在USB存储设备,云盘或者硬盘上。
  • Packaged in PortableApps.com format for easy integration. PortableApps.com 方便集成。

System Requirements

 

 

下载

https://sourceforge.net/projects/postgresqlportable/files/?source=navbar

https://github.com/garethflowers/postgresql-portable

 

使用

下载下来,解压到一个目录下,这个目录路径不能有中文。。。

 

运行:

 

PostgreSQLPortable.exe

 

查看角色

 

postgresql数据库用户

postgres=# \du

                             List of roles
 Role name |                   Attributes                   | Member of 
-----------+------------------------------------------------+-----------
 postgres      | …

 

查看用户

postgres=# SELECT u.usename AS "User name",
  u.usesysid AS "User ID",
  CASE WHEN u.usesuper AND u.usecreatedb THEN CAST('superuser, create
database' AS pg_catalog.text)
       WHEN u.usesuper THEN CAST('superuser' AS pg_catalog.text)
       WHEN u.usecreatedb THEN CAST('create database' AS
pg_catalog.text)
       ELSE CAST('' AS pg_catalog.text)
  END AS "Attributes"
FROM pg_catalog.pg_user u

ORDER BY 1;

 

用户名:postgres

 

 

客户端

HeidiSQL

http://www.heidisql.com/

 

用户是:postgres

端口是:5432

 

 

 

pgAdmin 

https://www.pgadmin.org/

建议pgAdmin III

 

 

教程

 

http://www.yiibai.com/html/postgresql/2013/080116.html

 

转载于:https://my.oschina.net/grail/blog/755355

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值