Este contenido no está disponible en el idioma seleccionado.

13.5.5. Database Environment Variables


Database environment variables pertain to a database, if one exists, and are used to connect an application to a database. The exact variable names depend on the type of database; the value of <database> is MYSQL or POSTGRESQL as appropriate. Note that these connections are only available to an application internally; you cannot connect from an external source.
OpenShift Enterprise does not currently support user changes to environment variables. This includes changing the default MySQL admin password (even outside of phpMyAdmin). If the password is changed, ensure the change takes effect correctly. Note that this restriction only applies to the default administrative user. You can add more users as required, and specify a custom password for these users.
Expand
Table 13.6. Database Environment Variables
Environment Variable Name Purpose
OPENSHIFT_Cart_Name_DB_HOST The host name or IP address used to connect to the database.
OPENSHIFT_Cart_Name_DB_PORT The port the database server is listening on.
OPENSHIFT_Cart_Name_DB_USERNAME The database administrative user name.
OPENSHIFT_Cart_Name_DB_PASSWORD The database administrative user's password.
OPENSHIFT_Cart_Name_DB_SOCKET An AF socket for connecting to the database (for non-scaled apps only).
OPENSHIFT_Cart_Name_DB_URL Database connection URL.
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat