Chapter 1 Introduction to Connector/C++

MySQL Connector/C++ is a MySQL database connector for C++. It lets you develop C++ applications that connect to the MySQL Server.

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

MySQL Connector/C++ Benefits

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

  • Convenience of pure C++; no C function calls required

  • Supports JDBC 4.0, an industry standard 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

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 the following 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

MySQL Connector/C++ requires:

  • MySQL 5.1 or higher

  • Microsoft Visual Studio 2013 on Windows

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