MySQL Connector/C++ Release Notes

2.2 Changes in MySQL Connector/C++ 8.3.0 (2024-01-16, General Availability)

Functionality Added or Changed

  • Connector/C++ 8.3.0 binary distributions from Oracle are built with the 8.3.0 version of the MySQL client library. MySQL Server 8.3.0 removed auto-reconnect support after deprecating it in versions 8.0.34 and 8.1.0. The related OPT_RECONNECT connection option continues to be recognized by the connector, but enabling the option now has no effect on the connection. Applications that use the legacy JDBC API and also enable OPT_RECONNECT can:

    • Implement reconnect logic in the application code.

    • Build JDBC Connector/C++ from sources in combination with an older version of the MySQL client library. However, enabling the OPT_RECONNECT option does guarantee a successful automatic reconnection to the server if the connection is found to have been lost.

    (WL #15979)

  • Improved OpenTelemetry support to propagate context when executing prepared statements. (WL #15959)

  • Improved support to import Connector/C++ into CMake projects by allowing find_package(mysql-concpp) to enable consuming it. This defines import targets such as mysql::concpp that can be linked to executables used by the connector. (WL #15952)