PostgreSQL命令行工具
简介 pgcli 是 针对 PostgreSQL的命令行工具,他的特色是对SQL能够语法高亮显示,并且能对输入进行自动提示。(同时,针对MySQL也有一个类似的命令行工具 mycli )。 网站: http://pgcli.com/ 授权协议: BSD 3-clause license 开发语言: Python 支持系统: Linux , OS X , Windows理论上可以但尚未测试过。 安装试用 环境:centos 32bit. 数据库:PostgreSQL9.4 1.安装PostgreSQL 编译安装或者安装包图形化安装均可。可参考: PostgreSQL在Linux下的源码编译安装 。 2.安装python 安装python。可参考: python开发环境搭建与连接PostgreSQL数据库 。 3.安装python-pip 首先试用yum安装python-pip,结果显示没有可用的包。 [root@localhost ~]# yum install python-pip Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.cqu.edu