22.5. MySQL Connector/C++

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:

  • Connection

  • DatabaseMetaData

  • Driver

  • PreparedStatement

  • ResultSet

  • ResultSetMetaData

  • Savepoint

  • Statement

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:

AIX

  • 5.2 (PPC32, PPC64)

  • 5.3 (PPC32, PPC64)

FreeBSD

  • 6.0 (x86, x86_64)

HPUX

  • 11.11 (PA-RISC 32bit, PA-RISC 64bit)

Linux

  • Debian 3.1 (PPC32, x86)

  • FC4 (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)

Mac

  • MacOSX 10.3 (PPC32, PPC64)

  • MacOSX 10.4 (PPC32, PPC64, x86)

  • MacOSX 10.5 (PPC32, PPC64, x86, x86_64)

SunOS

  • Solaris 8 (SPARC32, SPARC64, x86)

  • Solaris 9 (SPARC32, SPARC64, x86)

  • Solaris 10 (SPARC32, SPARC64, x86, x86_64)

Windows

  • XP Professional (32bit)

  • 2003 (64bit)

Future versions will run on all platforms supported by the MySQL Server.

Note

MySQL Connector/C++ supports MySQL 5.1 and later.

Note

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 .

Binary distributions

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

Other platforms:

  • Compressed GNU TAR archive (tar.gz)

Note

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.

Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout