Portable PostgreSQL

前端之家收集整理的这篇文章主要介绍了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

教程

@L_403_4@

原文链接:https://www.f2er.com/postgresql/194341.html

猜你在找的Postgre SQL相关文章