From the course: Java EE: Application Servers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add database drivers in Tomcat

Add database drivers in Tomcat

From the course: Java EE: Application Servers

Start my 1-month free trial

Add database drivers in Tomcat

- [Instructor] IT Managers at H Plus Org want to make the application more dynamic and so we've been requested to prepare our Tomcat installation to connect with a MySQL database. In order to access the different database systems with web applications deployed on Apache Tomcat, you first must add them to the Apache Tomcat lib directory. So, let's first go download the correct driver. If you navigate in your browsers to dev.mysql.com/downloads/connector/j/, scroll down to the connector 8.0.15, select the Platform Independent, go to the zip download, and click download. If you have not created an Oracle account yet, you must do this and log in, in order to download the file. Next, let's just open this file up. We'll use the automatic unzip capabilities here of our Mac. Go to our terminal window, we're going to copy from the downloads folder the MySQL driver, to the lib directory. Forgive me, I made a mistake. We need to copy not cd from the downloads MySQL directory to our lib…

Contents