MySQL Connector/C++ is a MySQL database connector for C++. It lets you develop C++ applications that connect to the MySQL Server.
For release notes detailing the changes in each release of MySQL Connector/C++, see MySQL Connector/C++ Release Notes.
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
MySQL Connector/C++ is compatible with the JDBC 4.0 API. MySQL Connector/C++ does not implement the entire JDBC 4.0 API, but does feature the following classes:
The JDBC 4.0 API defines approximately 450 methods for the classes just mentioned. MySQL Connector/C++ implements approximately 80% of these.
MySQL Connector/C++ requires:
MySQL 5.1 or later
Microsoft Visual Studio 2003 or later on Windows
The release has been successfully compiled and tested on the following platforms:
5.2 (PPC32, PPC64)
5.3 (PPC32, PPC64)
6.0 (x86, x86_64)
11.11 (PA-RISC 32bit, PA-RISC 64bit)
Debian 3.1 (PPC32, x86)
RHEL 3 (x86, x86_64)
RHEL 4 (x86, x86_64)
RHEL 5 (x86, x86_64)
RHEL 6 (x86, x86_64)
SLES 9 (x86, x86_64)
SLES 10 (x86_64)
SuSE 10.3, (x86_64)
Ubuntu 8.04 (x86)
Ubuntu 8.10 (x86_64)
Mac OS X
Mac OS X 10.3 (PPC32, PPC64)
Mac OS X 10.4 (PPC32, PPC64, x86)
Mac OS X 10.5 (PPC32, PPC64, x86, x86_64)
Solaris 8 (SPARC32, SPARC64, x86)
Solaris 9 (SPARC32, SPARC64, x86)
Solaris 10 (SPARC32, SPARC64, x86, x86_64)
XP Professional (32bit)
MySQL Connector/C++ is available as a Generally Available (GA) version. We ask users and developers to try it out and provide feedback.
Note that MySQL Workbench is successfully using MySQL Connector/C++.
If you have any queries, please contact us.
MySQL Connector/C++ is licensed under the terms of the GPL, like most MySQL Connectors. There are special exceptions to the terms and conditions of the GPL as applied to this software; see FLOSS License Exception. If you need a non-GPL license for commercial distribution, please contact us.