Dear MySQL users, MySQL Connector/C 6.1.3, a new version of the C API for client/server communication for the MySQL database management system, has been released. This version of Connector/C provides full support for MySQL 5.6 protocol. Connector/C is compatible with the client libraries (libmysql). It includes all the features in the MySQL client library shipped with MySQL servers 5.6 as well as prior versions. You can recompile existing code linked with Connector/C 6.1.3 without any code changes. You can use Connector/C to run and build client applications which communicate with MySQL server versions from 4.1 to 5.6 without a need to do a complete server installation. The release is now available in source and binary form for a number of platforms from our download pages at http://dev.mysql.com/downloads/connector/c/ MySQL Connector/C 6.1.3 will also be available for downloads via the Oracle Software Delivery Cloud in approximately 1-2 weeks. For information on installing, please see the documentation at http://dev.mysql.com/doc/connector-c/en/connector-c-installation.html Enjoy! Changes in MySQL Connector/C 6.1.3 (2013-12-27) Security Notes * A new MYSQL_OPT_SSL_ENFORCE option is available for the mysql_options() C API function to indicate whether to require the connection to use SSL. If enabled, an encrypted connection is attempted. If an encrypted connection cannot be established, the connection attempt fails. For more information, see mysql_options() (http://dev.mysql.com/doc/refman/5.7/en/mysql-options.html). Functionality Added or Changed * Some dependencies between client-side plugin header files were removed: + The MYSQL_PLUGIN_EXPORT macro required by plugin declarations is now declared directly in mysql/client_plugin.h instead of getting the definition from mysql/plugin.h. That macro was the only thing required by client-side plugins and declared in server-side header mysql/plugin.h, so including mysql/client_plugin.h in an application no longer requires the application to also include mysql/plugin.h. + mysql/plugin_trace.h no longer uses C_MODE_START or C_MODE_END. Consequently, including mysql/plugin_trace.h in an application no longer requires the application to also include my_global.h. Applications might require mysql/plugin.h or my_global.h for other reasons, of course. (Bug #17582168) * A new mysql_get_option() C API function is available that returns the current value of applicable mysql_options() options. See mysql_get_option() (http://dev.mysql.com/doc/refman/5.7/en/mysql-get-option.html) . * When a connection is returned to the thread pool plugin, the connection thread context must be cleaned up. Previously, this was done using COM_CHANGE_USER (which is like the mysql_change_user() C API function). However, that operation reauthenticates, which is unnecessary network roundtrip overhead in this context. Now it is possible for client connection state to be reset in a more lightweight manner without causing reauthentication. The API is exposed publicly through these changes: + A new COM_RESET_CONNECTION protocol command (defined in mysql_com.h) + A new mysql_reset_connection() C API function + A new resetconnection command for the mysql client Resetting a connection has effects similar to mysql_change_user() or an auto-reconnect except that the connection is not closed and reopened, and reauthentication is not done. See mysql_change_user() (http://dev.mysql.com/doc/refman/5.7/en/mysql-change-user.html )) and see Controlling Automatic Reconnection Behavior (http://dev.mysql.com/doc/refman/5.7/en/auto-reconnect.html)). For more information, see mysql_reset_connection() (http://dev.mysql.com/doc/refman/5.7/en/mysql-reset-connection .html) and mysql --- The MySQL Command-Line Tool (http://dev.mysql.com/doc/refman/5.7/en/mysql.html). * Connector/C is now included in MySQL Installer (Windows). * Because there are new API functions (mysql_get_option(), mysql_reset_connection()), the library ABI version is now 18.2. Shared library names now include 18.2 where appropriate. Bugs Fixed * It was not possible to build client-side plugins using Connector/C because client_plugin.h referenced a macro defined in the plugin.h file, which is not included in Connector/C distributions. (Bug #17582228) References: See also Bug #17582168. * After the fix for Bug #16409270, it was not possible to #include <mysql.h> following #include <windows.h>. (Bug #17514554) * Upgrading Connector/C using the 64-bit version of the Windows MSI package occurred in the default folder because registry search logic was hardcoded to use the 32-bit registry. (Bug #17515067) * A client crash occurred if mysql_set_server_option() or several other C API functions were called before mysql_real_connect(). (Bug #17338958) On Behalf of Oracle/MySQL RE Team. Hery Ramilison
↧
MySQL Connector/C 6.1.3 has been released (no replies)
↧