How do I connect to the database that I embedded onto my Application?
Your database connection parameters are stored on your Application's gear as environment variables. You can access them by logging onto your gear: https://www.redhat.com/openshift/community/faq/can-i-access-my-applicati... and running:
> env | grep OPENSHIFT_MYSQL #for MySQL
> env | grep OPENSHIFT_POSTGRESQL
> env | grep OPENSHIFT_NOSQL_DB #for MongoDB
It is highly recommended to use environment variables to configure you application's connection to the database. This is because we may migrate or update your Application/DB from time to time, resulting in potential IP changes.