Installing the MariaDB Connector/C++ Binary


Use a supported version of Visual Studio, either Visual Studio 2005 or Visual Studio 2008.

To use a variation of the requirements previously listed, such as a different compiler version, release configuration, or run time library, compile MariaDB Connector/C++ from source using your desired settings, and then ensure that your application is built with these same settings. Ensure that the three variables of compiler version, run time library, and run time linker configuration settings are the same for both application and MariaDB Connector/C++ itself, to avoid issues.

For your convenience the same information, but more frequently updated, can be found on the MySQL Forge site.

A better solution is to build your MariaDB Connector/C++ libraries from the source code, using the same tools that you use for building your application. This ensures compatibility.

Downloading MariaDB Connector/C++

Binary and source packages can be obtained from MySQL Connector/C++ downloads.

Archive Package

Unpack the archive into an appropriate directory. If you plan to use a dynamically linked version of MariaDB Connector/C++, make sure that your system can reference the MariaDB Client Library. Consult your operating system documentation on how do modify and expand the search path for libraries. In case you cannot modify the library search path it may help to copy your application, the MariaDB Connector/C++ library and the MariaDB Client Library into the same directory. Most systems search for libraries in the current directory.

Windows MSI Installer

Windows users can choose between two binary packages:

  1. Without installer (unzip in C:\)
  2. Windows MSI Installer (x86)

Using the MSI Installer may be the easiest solution. Running the MSI Installer does not require any administrative permissions as it simply copies files.

Figure 20.59. Windows Installer Welcome Screen

Windows Installer Welcome Screen

Figure 20.60. Windows Installer Overview Screen

Windows Installer Overview Screen

The "Typical" installation consists of all required header files and the Release libraries. The only available "Custom" installation option enables you to install additional Debug versions of the connector libraries.

Figure 20.61. Windows Installer Custom Setup Screen

Retornar