db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://url"
db.default.user=user
db.default.password=password
However auto configuration fails as below.
ERR Dec 09, 2014 6:43:02 PM org.cloudfoundry.reconfiguration.play.Configurer configure
2014-12-09T13:43:02.82-0500 [App/0] ERR INFO: No databases found. Skipping auto-reconfiguration.
What am missing for the auto configuration? Ideally, I would like to get this working.
I am open to listening to alternatives such as
as suggested by Scott F., but I am not sure how to set the manifest to incorporate these values and use them in application.conf.
Just including the following line.
db.default.driver=com.mysql.jdbc.Driver
fails with an URL required.
Help (with some detailed steps) will be appreciated.
Thanks!
Rags
2014-12-10T10:08:16.83-0500 [App/0] ERR INFO: No databases found. Skipping auto-reconfiguration.
I expected it to automatically configure p-mysql (the bound service) which it did not.
I minimally need the following in the application.conf file to make this work.
db.default.driver=com.mysql.jdbc.Driver
db.default.url=${?cloud.services.p-mysql.connection.jdbcurl}
I could not pull the db.default.driver information from the environment variables (unless I am missing something). Since the jdbcUrl has the URL, username and password, I don't need anything else.
I think this seems acceptable, but auto configuration working out of the box would be ideal.
Thanks!
Rags