Documentation Home
MySQL Connector/C++ 1.1 Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 277.0Kb
PDF (A4) - 278.2Kb
HTML Download (TGZ) - 52.5Kb
HTML Download (Zip) - 66.8Kb


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.


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.