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

相关文章

项目需要,有个数据需要导入,拿到手一开始以为是mysql,结果...
本文小编为大家详细介绍“怎么查看PostgreSQL数据库中所有表...
错误现象问题原因这是在远程连接时pg_hba.conf文件没有配置正...
因本地资源有限,在公共测试环境搭建了PGsql环境,从数据库本...
wamp 环境 这个提示就是说你的版本低于10了。 先打印ph...
psycopg2.OperationalError: SSL SYSCALL error: EOF detect...