MySQL Connector/C++ is a MySQL database connector for C++. The current version is 1.0.5 GA.
The 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 it is applied to this software, see FLOSS License Exception. If you need a non-GPL license for commercial distribution please contact us.
The MySQL Connector/C++ is compatible with the JDBC 4.0 API. However, MySQL Connector/C++ does not implement all of the JDBC 4.0 API. The MySQL Connector/C++ current version features the following classes:
The JDBC 4.0 API defines approximately 450 methods for the above mentioned classes. MySQL Connector/C++ implements around 80% of these and makes them available in the current release.
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 (ia64, x86, x86_64)
RHEL 4 (ia64, x86, x86_64)
RHEL 5 (ia64, x86, x86_64)
SLES 9 (ia64, x86, x86_64)
SLES 10 (ia64, x86_64)
SuSE 10.3, (x86_64)
Ubuntu 8.04 (x86)
Ubuntu 8.10 (x86_64)
MacOSX 10.3 (PPC32, PPC64)
MacOSX 10.4 (PPC32, PPC64, x86)
MacOSX 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)
Future versions will run on all platforms supported by the MySQL Server.
MySQL Connector/C++ supports MySQL 5.1 and later.
MySQL Connector/C++ supports only Microsoft Visual Studio 2003 and above on Windows.
MySQL Connector/C++ Download
You can download the source code for the MySQL Connector/C++ current release at the MySQL Connector/C++ downloads.
MySQL Connector/C++ Source repository
The latest development version is also available through Launchpad.
Bazaar is used for the MySQL Connector/C++ code repository. You can check out the latest source code using the bzr command line tool:
shell> bzr branch lp:~mysql/mysql-connector-cpp/trunk .
Starting with 1.0.4 Beta, binary distributions were made available in addition to source code releases. The releases available are shown below.
Microsoft Windows platform:
Without installer, a Zip file
MSI installer package
Compressed GNU TAR archive (tar.gz)
Note that source packages are available for all platforms in the Compressed GNU TAR archive (tar.gz) format.
Binary and source packages can be obtained from MySQL Connector/C++ downloads.
MySQL Connector/C++ Advantages
Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library) offers the following advantages for C++ users:
Convenience of pure C++, no C function calls required
Supports an industry standard API, JDBC 4.0
Supports the object-oriented programming paradigm
Reduces development time
MySQL Connector/C++ is licensed under the GPL with the FLOSS License Exception
MySQL Connector/C++ is available under a commercial license upon request
MySQL Connector/C++ Status
MySQL Connector/C++ is available as a GA version. We kindly ask users and developers to try it out and provide us with feedback.
Note that MySQL Workbench is successfully using MySQL Connector/C++.
If you have any queries please contact us.