pgweb 是一个采用 Go 语言开发的基于 Web 的 PostgreSQL 管理系统。
主要特性:
可连接到本地和远程服务器
浏览表格和表格数据
读取表格详情,包括结构、大小、索引和行数
执行 SQL 查询和运行分析
导出查询结果到 CSV
查看查询历史记录
支持 PostgreSQL 9.1-9.3,服务器启动参数:
Usage:
pgweb [OPTIONS]
Application Options:
-v, --version Print version
-d, --debug Enable debugging mode (false)
--url= Database connection string
--host= Server hostname or IP (localhost)
--port= Server port (5432)
--user= Database user (postgres)
--db= Database name (postgres)
--ssl= SSL option (disable)
--listen= HTTP server listen port (8080)
github: https://github.com/sosedoff/pgweb
releases: https://github.com/sosedoff/pgweb/releases
测试环境一:
pgweb 版本0.9.9
数据库:装在centos上的pg数据库: 192.168.43.129
web界面: 在win7 本地通过命令行生成 pgweb --url postgres://postgres:postgres@192.168.43.129:5432/postgres?sslmode=disable
此种方式可当作本地的客户端来使用
测试环境二:
pgweb 版本0.9.8
数据库:装在centos上的pg数据库: 192.168.43.129
web界面: 在centos执行 pgweb --sessions
网友评论