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
From the course: Java EE: Application Servers
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Tomcat and TomEE differences2m 44s
-
(Locked)
Install and set up Tomcat3m 20s
-
(Locked)
Tomcat web console5m
-
(Locked)
Deploy WAR files in Tomcat2m 41s
-
(Locked)
Add database drivers in Tomcat4m 14s
-
(Locked)
Address missing JEE capabilities5m 57s
-
(Locked)
Tomcat clustering4m 22s
-
(Locked)
Pros and cons of Tomcat and TomEE2m 41s
-
-
-
-
-