JDBC Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 2.11

MySQL Connector/J - Download and Installation

This section describes how to download and install MySQL Connector/J (JDBC driver).

With MySQL server installed and running, I am ready to try the JDBC driver to access my MySQL server. Here is what I did to download and install MySQL JDBC driver:

  • Go to the MySQL Drivers page.
  • Click Download link next to "JDBC Driver for MySQL (Connector/J)"
  • Click the Download link next to "Source and Binaries (zip) 5.0.7 8.3M"
  • Save the download file, mysql-connector-java-5.0.7.zip, to a temporary directory. The file size is about 8.5MB.
  • Unzip this file. I got a directory called mysql-connector-java-5.0.7. I moved and renamed this directory to \local\mysql-connector-java.
  • Finally, copy \local\mysql-connector-java\mysql-connector-java-5.0.7-bin.jar to \local\lib\mysql-connector-java-5.0.7-bin.jar.

The installation is done. You should read the documentation at \local\mysql-connector-java\docs\connector-j.pdf. Some version information of MySQL Connctor/J 5.0.7 is summarized here:

  • MySQL Connctor/J 5.0.7 implements version 3.0 of the JDBC specification.
  • MySQL Connctor/J 5.0.7 is a Type 4 driver - Pure Java and direct connection to the server.
  • MySQL Connctor/J 5.0.7 supports JDK 1.5.x environments.

Table of Contents

 About This Book

 JDBC (Java Database Connectivity) Introduction

 Downloading and Installing JDK - Java SE

 Installing and Running Java DB - Derby

 Derby (Java DB) JDBC Driver

 Derby (Java DB) JDBC DataSource Objects

 Java DB (Derby) - DML Statements

 Java DB (Derby) - ResultSet Objects of Queries

 Java DB (Derby) - PreparedStatement

 MySQL Installation on Windows

MySQL JDBC Driver (MySQL Connector/J)

MySQL Connector/J - Download and Installation

 Loading JDBC Driver Class - mysql-connector-java-5.0.7-bin.jar

 JDBC Driver Connection URL

 Creating Connections with DataSource Class

 Getting Driver and Server Information

 Creating Tables with AUTO_INCREMENT Columns

 "INSERT INTO" Statements

 MySQL - PreparedStatement

 MySQL - Reference Implementation of JdbcRowSet

 MySQL - JBDC CallableStatement

 MySQL CLOB (Character Large Object) - TEXT

 MySQL BLOB (Binary Large Object) - BLOB

 Oracle Express Edition Installation on Windows

 Oracle JDBC Drivers

 Oracle - Reference Implementation of JdbcRowSet

 Oracle - PreparedStatement

 Oracle - JBDC CallableStatement

 Oracle CLOB (Character Large Object) - TEXT

 Oracle BLOB (Binary Large Object) - BLOB

 Microsoft SQL Server 2005 Express Edition

 Microsoft JDBC Driver for SQL Server - sqljdbc.jar

 Microsoft JDBC Driver - Query Statements and Result Sets

 Microsoft JDBC Driver - DatabaseMetaData Object

 Microsoft JDBC Driver - DDL Statements

 Microsoft JDBC Driver - DML Statements

 SQL Server - PreparedStatement

 SQL Server CLOB (Character Large Object) - TEXT

 SQL Server BLOB (Binary Large Object) - BLOB

 JDBC-ODBC Bridge Driver - sun.jdbc.odbc.JdbcOdbcDriver

 JDBC-ODBC Bridge Driver - Flat Text Files

 JDBC-ODBC Bridge Driver - MS Access

 JDBC-ODBC Bridge Driver - MS SQL Server

 Summary of JDBC Drivers and Database Servers

 Additional Tutorial Notes to Be Added

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2007
MySQL Connector/J - Download and Installation