MySQL Connector/C++ 9.3 Developer Guide

Chapter 3 Installing Connector/C++ from a Binary Distribution

To obtain a Connector/C++ binary distribution, visit the Connector/C++ downloads page.

For some platforms, Connector/C++ binary distributions are available in platform-specific packaging formats. Binary distributions are also available in more generic format, in the form of compressed tar files or Zip archives.

Note

Generic Linux packages do not contain Connector/C++ static libraries. If you intend to link your application to a static library, consider installing a package that is specific to the platform on which you build your final application.

For descriptions here that refer to documentation files, those files have names such as CONTRIBUTING.md, README.md, README.txt, README, LICENSE.txt, LICENSE, INFO_BIN, and INFO_SRC. (Prior to Connector/C++ 8.0.14, the information file is BUILDINFO.txt rather than INFO_BIN and INFO_SRC.)

Installation on Windows

Important

On Windows platforms, Commercial and Community Connector/C++ distributions require the Visual C++ Redistributable for Visual Studio. The Redistributable is available at the Visual Studio Download Center; install it before installing Connector/C++. For information about which VC++ Redistributable versions are acceptable, see Platform Support and Prerequisites.

These methods of installing binary distributions are available on Windows:

Installation on Linux

These methods of installing binary distributions are available on Linux:

Installation on macOS

These methods of installing binary distributions are available on macOS:

Installation on Solaris

These methods of installing binary distributions are available on Solaris:

Installation Using a tar or Zip Package

Connector/C++ binary distributions are available for several platforms, packaged in the form of compressed tar files or Zip archives, denoted here as PACKAGE.tar.gz or PACKAGE.zip.

Note

Generic Linux packages do not contain Connector/C++ static libraries.

To unpack a compressed tar file, use this command in the intended installation directory:

tar zxvf PACKAGE.tar.gz

To install from a Zip archive package (.zip file), use WinZip or another tool that can read .zip files to unpack the file into the location of your choosing.