Documentation Home
MySQL Connector/C++ 1.1 Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 279.5Kb
PDF (A4) - 281.1Kb
HTML Download (TGZ) - 53.8Kb
HTML Download (Zip) - 67.0Kb


MySQL Connector/C++ 1.1 Developer Guide  /  Introduction to Connector/C++

Chapter 1 Introduction to Connector/C++

MySQL Connector/C++ 1.1 is a MySQL database connector for C++ applications that connect to MySQL servers. Connector/C++ enables development of C++ applications that use the JDBC-based API.

For more detailed requirements about required MySQL versions for Connector/C++ applications, see Platform Support and Prerequisites.

For notes detailing the changes in each release of Connector/C++, see MySQL Connector/C++ Release Notes.

Connector/C++ Benefits

MySQL Connector/C++ offers the following benefits for C++ users compared to the MySQL C API provided by the MySQL client library:

  • Convenience of pure C++.

  • Supports a JDBC 4.0-based API.

  • Supports the object-oriented programming paradigm.

  • Reduces development time.

  • Licensed under the GPL with the FLOSS License Exception.

  • Available under a commercial license upon request.

Connector/C++ and JDBC Compatibility

Connector/C++ is compatible with the JDBC 4.0 API. Connector/C++ does not implement the entire JDBC 4.0 API, but does feature these classes: Connection, DatabaseMetaData, Driver, PreparedStatement, ResultSet, ResultSetMetaData, Savepoint, Statement.

The JDBC 4.0 API defines approximately 450 methods for the classes just mentioned. Connector/C++ implements approximately 80% of these.

Platform Support and Prerequisites

To see which platforms are supported, visit the Connector/C++ downloads page.

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 Connector/C++.

These requirements apply to building and running Connector/C++ applications, and to building Connector/C++ itself if you build it from source:

  • To build Connector/C++ applications:

    • The MySQL version does not apply.

    • On Windows, Microsoft Visual Studio 2015 is required.

  • To run Connector/C++ applications, a server from MySQL 5.5 or higher is required.

  • To build Connector/C++ from source:

    • Building Connector/C++ requires the client library from MySQL 5.7 (5.7.9 or higher) or MySQL 8.0 (8.0.11 or higher).

    • On Windows, Microsoft Visual Studio 2015 is required.