A Tomcat application server will used a JDBC JAR file to make a connection to a database. There are many different JAR files that could be used, such as:
Download the JAR file
Often, the JAR file is not include when Tomcat is installed, thus you will need to download the JAR file. Here are a couple example URLs that would be used to download the JAR file.
JAR file location on Tomcat (Linux)
There are various places where the JAR file can be place, most commonly:
JAR file setup on Linux
If the JAR file is a gzip compressed tar archive. Gunzip the tar archive.
Extract the tar archive.
tar -xf mysql-<version>.tar
Copy the JAR file into the directory where you want the JAR file to reside.
cp mysql-connector-java-version-bin.jar /opt/tomcat/lib/
Add the MySQL JAR to your classpath.
Extract the MySQL connector zip. Move the MySQL JAR into the appropriate directory of the application server that will be used to run your Java project. For example, if your Java project will be run using Tomcat, you would copy the MySQL JAR to the $tomcat_home/lib directory.