I deployed a project in OpenShift
, I used a cartridge to create a Mysql
database soon after the creation of the database this information appears:
MySQL 5.5 database added. Please make note of these credentials:
Root User: adminhtK8LZq Root Password: shKekKGKhHEH Database Name: oracle
Connection URL: mysql: // $ OPENSHIFT_MYSQL_DB_HOST: $ OPENSHIFT_MYSQL_DB_PORT /
You can manage your new MySQL database by also embedding phpmyadmin. The phpmyadmin username and password will be the same as the MySQL credentials above.
But when I configure my hibernate.cfg
with this data the database is not created in OpenShift
.
Hibernate.cfg:
<!-- Database connection settings -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/oraculo </property>
<property name="connection.username">adminhtK8LZq</property>
<property name="connection.password">shKekKGKhHEH</property>
...
I have to pass some value in place of this URL, I already tried to pass the ip that appears in phpMyAdmin
but it did not work.