当前位置:网站首页>Greenplum6.x客户端连接
Greenplum6.x客户端连接
2022-07-16 23:22:00 【xcSpark】
Greenplum6.x客户端连接
一. 下载客户端(windows)

根据需要下载,这里点击windows版本

安装完运行

设置密码
pgAdmin
新建连接

输入数据源相关信息


二. linux客户端使用
#安装
[[email protected] tmp]# rpm -ivh greenplum-db-clients-6.18.2-rhel7-x86_64.rpm
#配置
[[email protected] ~]$ vi .bash_profile
##末尾增加如下内容
source /usr/local/greenplum-db-clients/greenplum_loaders_path.sh
#生效环境变量
[[email protected] ~]$ source .bash_profile
#连接数据库,需要输入密码
[[email protected] ~]$ psql -d gpdb -h 192.168.0.110 -p 5432 -U gpuser
#通常脚本中需要连接数据库
[[email protected] ~]$ PGPASSWORD='password' psql -d gpdb -h 192.168.0.110 -p 5432 -U gpuser -w
#或者
[[email protected] ~]$ PGPASSWORD='password' psql -d gpdb -h 192.168.0.110 -p 5432 -U gpuser
$或者如下,这种通过ps -ef|grep psql 会显示出明文密码,不安全
[[email protected] ~]$ psql "postgresql://gpuser:[email protected]/gpdb"
边栏推荐
- Is it safe to open an account with baoguoxin securities? Can I drive it?
- 食物链(dfs记忆化)
- 18. Sum of four numbers (15 enhanced version) [ans.add (arrays.aslist (nums[i], nums[j], nums[l], nums[r])]
- Coordinate solution of rectangular coordinate system rotation (n*90 °) (1 ≤ n ≤ 4)
- Flowable工作流(flowable 数据库表结构)
- @How can conditionalonmissingbean cover beans in third-party components
- Master-slave separation of database
- 2022 latest software test interview questions (with answers) to test your level
- Assembly instance analysis -- boot program, kernel program, user program, load disk file
- prometheus+grafana可视化实时jvm监控工具
猜你喜欢

Hcia-r & s own notes (9) data forwarding process, unicast / multicast / multicast

交换机与路由器技术:热备份路由选择协议HSRP、HSRP和SPVSTP综合实验

Strength certification | Haitai Fangyuan is strongly listed in the top 20 fields of "roar 2022 network security industry map"
![[Vulnhub] Raven-2 (mysql-UDF提权)](/img/10/68f77c6f8a99be13de3e45cc08287a.png)
[Vulnhub] Raven-2 (mysql-UDF提权)

sqli-labs less-1(报错注入之extractvalue)

Solve the problem of browser strobe after Huawei notebook is installed with driver

带领全网朋友,完成粉笔登录加密分析,再次换种玩法

What do LETV employees rely on to live a "fairy life" without a boss?

(手工)【sqli-labs62-65】限制注入次数:盲注

There are certificates and directories! | Haitai password service platform
随机推荐
(manual) [sqli-labs62-65] limit injection times: blind injection
交换机与路由器技术:链路聚合、生成树协议STP和生成树协议配置
Checked to display and hide the hearts of favorite buttons
After yarn /nmp global installation, the command does not take effect
Daily question 1: effective anamorphic words (Sword finger offer032)
@ConditionalOnMissingBean 如何实现覆盖第三方组件中的 Bean
Interpretation of the process of generating redistemplate
Rocky basic exercises find, SED, grep, tar
VSCodeUserSetup-x64-1.65.0.exe
Using backup to restore the database, but there is no control file. How to solve the file
2022最新软件测试面试题(附答案)来测试下你的水平
Using the third-party built-in module to realize the function of converting numbers to uppercase in nodejs
uml类图浅录
Solution to the problem of creating file permissions in golang
数据库整理
[dynamic planning]dp24 house raiding (II) - medium
双指针汇总(未完待续)
C # draw rectangle, ellipse and text for the picture
【深度学习】(二)深度学习基础学习笔记
Mysql—多版本並發控制(MVCC)