Because the Microsoft Visual C++ 2017 Redistributable installer deletes the Microsoft Visual C++ 2015 Redistributable registry keys that identify its installation, standalone MySQL MSIs may fail to detect the Microsoft Visual C++ 2015 Redistributable if both it and the Microsoft Visual C++ 2017 Redistributable are installed. The solution is to repair the Microsoft Visual C++ 2017 Redistributable via the Windows Control Panel to recreate the registry keys needed for the runtime detection. Unlike the standalone MSIs, MySQL Installer for Windows contains a workaround for the detection problem. (Bug #28345281, Bug #91542)
An RPM package for installing ARM 64-bit (aarch64) binaries of Connector/C++ on Oracle Linux 7 is now available in the MySQL Yum Repository and for direct download.
Known Limitation for this ARM release: You must enable the Oracle Linux 7 Software Collections Repository (ol7_software_collections) to install this package, and must also adjust the libstdc++7 path. See Yum's Platform Specific Notes for additional details.
Installers for Connector/C++ are now available in these formats: MSI packages (Windows); RPM packages (Linux); DMG packages (macOS). See Installing Connector/C++ from a Binary Distribution.
yaSSL is no longer included in Connector/C++ source distributions. wolfSSL may be used as a functionally equivalent alternative that has a GPLv2-compatible license. In addition, wolfSSL (like OpenSSL) supports the TLSv1.2 protocol, which yaSSL does not.
To build Connector/C++ using wolfSSL, use the
-DWITH_SSL=CMake option, where
path_nameindicates the location of the wolfSSL sources. For more information, see Source Installation System Prerequisites, and Connector/C++ Source-Configuration Options.
Connector/C++ now supports
SKIP LOCKEDlock contention modes to be used with
lockShared()clauses of CRUD find/select operations (see Locking Read Concurrency with NOWAIT and SKIP LOCKED), and a default lock contention mode. The following list names the permitted constants. For each item, the first and second constants apply to X DevAPI and X DevAPI for C, respectively.
LOCK_CONTENTION_DEFAULT: Block the query until existing row locks are released.
LOCK_CONTENTION_NOWAIT: Return an error if the lock cannot be obtained immediately.
LOCK_CONTENTION_SKIP_LOCKED: Execute the query immediately, excluding from the query items that are locked.
For X DevAPI and X DevAPI for C applications, lock mode methods accept these lock contention constants as a parameter. For X DevAPI applications, lock mode methods can be called without this parameter, as before; this is equivalent to passing a lock mode of
For more information, see Working with Locking.
Connector/C++ now supports the
SHA256_MEMORYauthentication mechanism for connections using the X Protocol. For X DevAPI applications,
SessionOption::AUTHsupports the new value
AuthMethod::SHA256_MEMORY. For X DevAPI for C applications, the session option
MYSQLX_OPT_AUTHsupports the new value
MYSQLX_AUTH_SHA256_MEMORY. These new values request using the
sha256_memoryauthentication mechanism when creating a session.
To increase compliance with the X DevAPI, these Connector/C++ changes were made:
getAffectedItemsCount()was moved from
getAffectedRowsCount()was removed. Use
getWarningCount()was renamed to
utf8mb4character data was handled incorrectly. (Bug #28240202)
Sessioncreation had a memory leak. (Bug #27917942)
When configuring to build Connector/C++ with the legacy connector, CMake did not account for the
MYSQL_CONFIG_EXECUTABLEoption. (Bug #27874173, Bug #90389)
Improper error handling for unknown hosts when creating a session could result in unexpected application exit. (Bug #27868302)
mysqlx_row_fetch_one()X DevAPI for C function could fail to return for large result set exceeding the maximum packet size. Now such result sets produce an error. (Bug #27732224)