Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

jdbc mysql connection

  Asked By: Donna    Date: Oct 25    Category: Java    Views: 763

i try to connect to mysql server (3.23.52) via jdbc. which driver do
u prefer? i use tomcat 3.3a and j2sdk 1.4.1 . where do i have to put
driver class files in web server and which configurations
(classpath,etc.) do i have to do? my operating system is win2000



2 Answers Found

Answer #1    Answered By: Juan Reynolds     Answered On: Oct 25

i think the real question is where to put third party classes in
tomcat 4.x.x version. documentation tells to put them under lib or
classes directory of /WEB_INF directory but there is not such a
directory under ROOT/WEB_INF

Answer #2    Answered By: Rafael Thompson     Answered On: Oct 25

You wrote:
The server  (Operating System - Windows 2000 Advanced Server) *will* have
database install and running and together

If your DB is not running, your software cannot connect  to it.

String url = "jdbc:mysql:/localhost:3306/qti?username=&password=";

The "localhost" of the client's computer will be their own computer, not the
IP address of your database server.

Didn't find what you were looking for? Find more on jdbc mysql connection Or get search suggestion and latest updates.