Documentation Home
Connectors and APIs Manual
Download this Manual

Connectors and APIs Manual  /  MySQL Connector/J Developer Guide  /  Connector/J Installation

4.3 Connector/J Installation

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.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 4.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.

Important

You may also need to install the following third-party libraries on your system for Connector/J 8.0 to work:

  • Protocol Buffers (required for using X DevAPI and for building Connector/J 8.0 from source)

  • Javassist (only required for building Connector/J 8.0 from source)