微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.jb51.cc.com/html/postgresql/2013/080116.html

原文地址:https://www.jb51.cc/postgresql/194341.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐