Helpful Information
Home
Categories
Contact us
Category: Java Help
MySQL connection from TOMCAT
How do I set up TOMCAT so that I can access a MySQL-database from a servlet running on the tomcat server?
Or where can I find information regarding the above?
Morten Andersen
Denmark
Hi Mortena,
You need to use the JDBC drive to connect from your servlet, or JSP page.
Go to http://www.mysql.com/downloads/api-jdbc.html to get the JDBC driver for mysql.
Also, check out: http://www.jguru.com/jguru/faq/faqpage.jsp?name=JDBC for common JDBC questions.
privacy (GDPR)