The world's most popular open source database
MySQL Connector/C++ is a MySQL database connector for C++.
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 preview 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++ preview release at the download site.
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 source code using the bzr command line tool:
shell> bzr branch lp:~mysql/mysql-connector-cpp/trunk .
The source of the 1.0.3alpha release is available from the following branch:
shell> bzr branch lp:~andrey-mysql/mysql-connector-cpp/v1_0_3
The source of the 1.0.2alpha release is available from the following branch:
shell> bzr branch lp:~andrey-mysql/mysql-connector-cpp/v1_0_2
The source of the 1.0.1alpha release is available from the following branch:
shell> bzr branch lp:~andrey-mysql/mysql-connector-cpp/v1_0_1
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.
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 development preview version. We kindly ask users and developers to try it out and provide us with feedback. We do not encourage you to use it in production environments.
Note that MySQL Workbench is successfully using MySQL Connector/C++.
Sun Microsystems does not provide formal support for MySQL Connector/C++.
If you have any queries please contact us.