MySQL Connector/C++ Release Notes

2.1 Changes in MySQL Connector/C++ 9.0.0 (2024-07-01, General Availability)

Functionality Added or Changed

  • This release includes directory and file name changes: On Linux, RPM and DEB development packages now install public headers to /usr/include/mysql-cppconn/ instead of /usr/include/mysql-cppconn-8/. On Windows, the MSI installation suffix was modified from "Connector C++ X.Y/" to "MySQL Connector C++ X.Y/" (where X.Y is major.minor version of the connector) to align with other MySQL products. The major JDBC ABI version changed from 9 to 10.

    A consequence of bumping JDBC ABI version, the classic connector library soname changes to libmysqlcppconn.so.10 while the symlink used in linker invocation remains as libmysqlcppconn.so. On Debian the library package name changes from libmysqlcppconn9 to libmysqlcppconn10. Known limitation: as a consequence of bumping the JDBC ABI version, upgrading the RPM package from version 8.4.0 to 9.0.0 removes the old .so.9 library from the system and this could break code that depends on that old version. This is not a limitation for DEB packages.

    For the X DevAPI packages, the base name changed from libmysqlcppconn8 to libmysqlcppconnx, and the DEB package is renamed from libmysqlcppconn8-2 to libmysqlcppconnx2. The major X DevAPI ABI version remains at 2. (Bug #36723452, WL #16310)

  • Added support to the JDBC API for the VECTOR data type that was introduced in MySQL Enterprise Server 9.0.0. This also adds the ResultSet::getVector() and PreparedStatement::setVector() methods, along with the DataType::VECTOR constant. (WL #16170)

Bugs Fixed

  • The CMake package configuration file (mysql-concpp-config.cmake) would not correctly declare the JDBC API library dependency with the MySQL client library. This could lead to broken builds for applications that use the JDBC API library when the connector was built from source with the default settings. (Bug #36298318)