how to connect mysql database to my java app
I am trying to deploy a java app on my droplet.
but the matter is how can i connect my mysql database with my java app.
and how do i know, whether my database is connected to my app or not?
i am using tomcat.