I have a Java application that uses Hibernate. It's configured to write to a MySQL db. I can say that I configured it correctly because when I run it on my local machine (on Tomcat and Jetty), tables are created in my local db.
However, when I deploy it to Heroku, the tables are not created. Heroku logs:
Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'po
stgres://zzz:[email protected]
mazonaws.com:5432/zzz'
Logs
Why is Heroku connecting to this db instead of using my configurations?
Additional info: App is deployed. It's just that the db tables are not created.