-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is autoconfig of db really working? #101
Comments
Did you restart the app after binding? That is a requirement. Also, can you include the output of |
Detection of a bound service requires that the credentials meet certain criteria. For a MySQL database, you can view the |
Hi @dmikusa-pivotal and @scottfrederick , thanks for answering! Yes I did bind and restart. From the logs it seams that the binding is discovered "Found db", see below. I have bound phpmyadmin to the same datasource to check but the database (scheme) is empty. Could it be due to missing priviliges on the db side? But I guess I would see errors in the log if that was the case, right?
|
These lines do indicate that the bound database service is detected and a connection is configured:
I don't see any errors in the startup logs, so it's difficult to tell what else might be going on. |
What's weird, is that the Hibernate dialect is H2. It's a MySQL DB, so I'd think it would use a MySQL dialect. I don't have a CF env at the moment to test that though.
You might try one of these options to force a MySQL dialect. Who is the service provider for your MySQL DB? Or are you using a user-provided service? |
I have pushed the app to cloud foundry and bound it to a mysql database. However when I start the app and look at the database there is now table available. Am I missing something?
Thanks, Joda
The text was updated successfully, but these errors were encountered: