MySQL Connector/J 5.1 Developer Guide
MySQL Connector/J is distributed as a .zip
or
.tar.gz
archive, available for download from
the Connector/J
Download page. The archive contains the sources and the
JAR archive named
mysql-connector-java-
.
version
-bin.jar
You can install the Connector/J package using either the binary or
source distribution. The binary distribution provides the easiest
method for installation; the source distribution lets you
customize your installation further. With either solution, you
manually add the Connector/J location to your Java
CLASSPATH
.
If you are upgrading from a previous version, read the upgrade information in Section 3.3, “Upgrading from an Older Version” before continuing.
Connector/J is also available as part of the Maven project. For more information and to download the Connector/J JAR files, see the Maven repository.
You also need to install the Simple Logging Facade API to use
the logging capabilities provided by the default implementation
of org.slf4j.Logger.Slf4JLogger
by
Connector/J. That and other third-party libraries are required
for building
Connector/J from source (see the section for more
information on the required libraries).