Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible to manage an OpenShift Database with pgAdmin?

Today I want to know if it is possible to manage a PostgreSQL on OpenShift using pgAdmin, in the same way that we can manage an Amazon RDS database?

like image 690
cap7 Avatar asked Jan 11 '15 01:01

cap7


2 Answers

Use port forwarding on your local machine to establish a connection to your remote server:

rhc port-forward -a applicationName

Now check the output on your command line to which port the postgres database service is mapped, if available this will be 5432 by default.

A step by step documentation about port forwarding is available at Getting Started with Port Forwarding on OpenShift.

like image 120
timo.rieber Avatar answered Oct 22 '22 13:10

timo.rieber


Another way would be to configure the ssh-tunnel into your connection.

ssh-tunnel window

Tunnel-Host would be your applications name

Username the beginning string, when ssh'ing to that connection: XXX@application-name


Identity file would be id_rsa in .ssh fodler in your home directory

password your openshift password

like image 4
Zahtu Avatar answered Oct 22 '22 14:10

Zahtu