It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes How to install mysql for java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "How to install mysql for java" Watch "How to install mysql for java" New topic

How to install mysql for java

Monica Kapoor

Joined: Nov 08, 2005
Posts: 7
Hi Ranchers,
I am trying to install mysql and wanna use it with java.I have installed the server.My problem is what else should I and how I have to install to work with Servlets and JSPs and the Mysql.I have setup of mysql-connector-odbc and mysql-connector-java.Thank you alot guys,regards,
Andy Grove

Joined: Nov 11, 2003
Posts: 18
Hi Monica,

mysql-connector-j is a jdbc driver. You need to read up on JDBC as the next step. I'd recommend taking a look at javadocs for DriverManager and Connection in the standard JDK.

Also, there's the JDBC tutorial here:

Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Find yourself a MySQL tutorial and admin tool as well.
rob armstrong
Ranch Hand

Joined: Jul 25, 2005
Posts: 77
Monica did you get yours to work yet?
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Connecting to MySQL using JSP and JDBC
Nilesh Molankar

Joined: Nov 13, 2005
Posts: 3
Hi Monica,
You will need to install "mysql-connector-java-3.1.12-bin.jar". and add its location to your classpath.
Like if the u have istalled the driver at "C:\mysql-connector-java-3.1.12\mysql-connector-java-3.1.12-bin.jar;" add this path to your classpath.

How this helps.

I agree. Here's the link:
subject: How to install mysql for java
jQuery in Action, 3rd edition