How do I connect multiple applications to one database?

Code: 
KB-E1051
Applies to: 
OpenShift
Issue: 

How do I connect multiple applications to one database?

Resolution: 

OpenShift does not support direct connectivity to an embedded database on non-scalable applications.  Having said that, there are 2 workarounds today:
1) Connecting to a scalable application's database using the hardcoded values since you won't have $OPENSHIFT_DB_* env vars (for scalable apps, see https://openshift.redhat.com/community/kb/kb-e1049-how-does-scaling-work...)
2) ssh port forwarding (see https://openshift.redhat.com/community/forums/openshift/accessing-an-ser...)