MySQL Connector/C++ 1.1 Developer Guide

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

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

Installation on Windows


For Connector/C++ 1.1.11 and higher, Commercial and Community distributions require the Visual C++ Redistributable for Visual Studio 2015 to work on Windows platforms. Up through Connector/C++ 1.1.10, Community (not Commercial) distributions require the Visual C++ Redistributable for Visual Studio 2013.

The Redistributable is available at the Microsoft Download Center; install it before installing any version of Connector/C++ that requires it.

These binary-distribution installation methods are available on Windows:

Post-Installation Setup

If you plan to use a dynamically linked version of Connector/C++, the libmysqlclient MySQL client library must be registered with the dynamic linker so that it can be found at runtime. Make sure that your system can reference the MySQL client library that Connector/C++ is linked against and thus requires. Consult your operating system documentation on how to modify and expand the search path for libraries. Many Unix and Unix-like systems enable configuring dynamic library locations using LD_LIBRARY_PATH environment variable. For example, if you install Connector/C++ under /usr/local/lib, try this:

export LD_LIBRARY_PATH=/usr/local/lib

On macOS, try this:

export DYLD_LIBRARY_PATH=/usr/local/lib

It may also be necessary to run ldconfig or equivalent utility.

If you cannot modify the library search path, it may help to copy your application, the Connector/C++ library and the MySQL client library into the same directory. Most systems search for libraries in the current directory.