#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Denmark
    Posts
    6
    Rep Power
    0

    Question


    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
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Vancouver, WA
    Posts
    49
    Rep Power
    14
    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.
    --
    John Sturgeon <><
    johns@senareider.com
    http://www.senareider.com/technology.php

IMN logo majestic logo spyfu logo threadwatch logo seochat tools logo