
MySQL 9.5 Officially Released (GA)
MySQL 9.5 Innovation Edition was officially released on October 21, 2025. Let's take a quick look at the features of this version.
Related tags
MySQL 9.5 Innovation Edition was officially released on October 21, 2025. Let’s take a quick look at the features of this version.
MySQL 9.5 features significant updates in several core areas, including account management, performance optimization, security, and feature expansion, with the core focus on improving management flexibility, operational performance, and security compliance.
I. Enhanced Account and Access Management
- A new forced role activation feature has been added, which can be controlled via the
activate_mandatory_rolesoption. Whenactivate_all_roles_on_loginis disabled and this option is enabled, the account will automatically activate both the forced role and the default role. This option is enabled by default. - The connection control component has added a new configuration item, through the system variable
component_connection_control.exempt_unknown_users, which can be used to set whether to exempt failed connections without user credentials from latency penalties. At the same time, a new status variableComponent_connection_control_exempted_unknown_usershas been added to count the number of exempted connections, taking into account the needs of both security and load balancing scenarios.
II. Performance Optimization and Configuration Adjustment
- The binary log system variable
binlog_transaction_dependency_history_sizehas been optimized, with its default value increased from 25000 to 1000000 and its maximum value increased from 1000000 to 10000000, thus improving dependency management in large transaction scenarios. - InnoDB optimizes the default value of
innodb_log_writer_threadsto dynamically adjust based on the binary log enabling status and the number of CPUs. For example, this feature is disabled by default when binary logging is disabled and logical CPUs are ≤4. The default value ofinnodb_change_bufferingis changed to ALL to improve the efficiency of secondary index updates. - The thread pool auto-configuration plugin can automatically set the optimal default values for 5 core variables, such as
thread_pool_size, based on server hardware (number of VCPUs). It can also verify and correct incorrect configurations, reducing manual tuning costs.
III. Enhanced Security
- The authentication security has been enhanced by increasing the default value of
caching_sha2_password_digest_roundsto 10000, thus strengthening the security of password hashes. The SCRAM-SHA-1 authentication methoddeprecated, and the default authentication method has been changed toSCRAM-SHA-256. The default values of the corresponding system variables have also been updated. - Replication security is enabled by default. Encryption is enabled by default for all replication connections. The default value
SOURCE_SSLis set to 1. The default valuegroup_replication_ssl_modeis changed toREQUIRED. The default valuegroup_replication_recovery_use_sslis enabled to reduce the risk of data transmission. - The key management
component_keyring_kmipandkeyring_okvhave been upgraded to support theSECRETkey type inOracle Key Vault 21.10 +; thekeyring_okvplugindeprecatedand replaced by thekeyring_kmipcomponent, making it compatible with more key management products that supportKMIP 1.1protocol.
IV. Functional Expansion and Compatibility Improvement
- JavaScript support has been upgraded, increasing the size limit of SQL call result sets for JavaScript stored procedures and supporting larger data volumes; the MLE component complies with the ECMAScript 2025 specification and supports handling file paths containing redundant/relative directories. The
mle.memory_maxvariable can be automatically configured based on physical memory (5% percentage, ranging from 0.4GB to 32GB). - JSON functionality has been optimized and fixes issues related to parsing and validating large-precision floating-point numbers in JSON and reducing the size of TIME values when converting to JSON. JSON Duality Views have had its DML operation logic improved, prohibiting the deletion of singleton items from nested sub-objects and fixing an assertion failure issue when creating views with WHERE conditions containing subqueries.
- The newly added diagnostic tool introduces the MySQL Diagnostic Monitor (mysqldm) client tool, which can preset queries to collect server diagnostic information and store it in JSON format. It supports custom output directory, iteration count and interval, making it easier to troubleshoot problems.
V. Other Important Updates
- System variables and plugins have been adjusted.
deprecatedvariables such asgroup_replication_allow_local_lower_version_joinandreplica_parallel_type, as well as thesemisync_master、semisync_slaveplugins, have been removed and replaced by new plugins. The default value ofexplain_formathas been changed fromTRADITIONALtoTREE, optimizing the execution plan display. - Compilation and packaging optimizations for the Solaris platform support Clang and GCC compilation, with OpenSSL 3 used by default; upgraded versions of the bundled googletest and libbacktrace libraries; minimum CMake version requirement increased to 3.17.5; and support for compilation using either the bundled or system libzip libraries.
- The sys Schema enhancement
revoke_schema_privileges_from_all_accounts_except()stored procedure is installed by default and can revoke permissions for a schema in batches (excluding specified accounts), simplifying permission management operations.
A comparison table summarizing the new features of MySQL 9.5.0 has been compiled. The table clearly lists the feature categories, key changes, and their impact, making it easy for everyone to quickly look up and compare the differences with the old version.
MySQL 9.5.0 New Feature Classification Comparison Table
Feature categories Key Changes Impact and Value Account and Access Management 1. Added the `activate_mandatory_roles` option to support forced role activation. 2. Added the `component_connection_control.exempt_unknown_users` variable to exempt unknown user connection latency penalties. 3. Added the `Component_connection_control_exempted_unknown_users` status variable. 1. Fine-grained control over role activation logic enhances access control security. 2. Prevents legitimate load balancer connections from being misjudged, ensuring server availability. Performance optimization 1. The default value of binlog_transaction_dependency_history_size has increased from 25000 to 1000000, and the maximum value has increased from 1000000 to 10000000. 2. The default value of innodb_log_writer_threads is dynamically adjusted based on the log_bin status and the number of CPUs. 3. The thread pool automatically configures five variables, including thread_pool_size, based on the number of VCPUs. 1. Optimize binary log dependency management for large transactions. 2. Adapt to different hardware and log configurations to improve InnoDB write performance. 3. Reduce manual tuning costs and adapt to hardware resources. Security Enhancement 1. `caching_sha2_password_digest_rounds` default value → 10000 2. Replication connections are encrypted by default; `SOURCE_SSL` default = 1, `group_replication_ssl_mode` default = REQUIRED 3. The `keyring_okv` plugin is deprecated and has been replaced by `keyring_kmip`. 1. Enhanced password hash security. 2. Reduced risk of data replication and transmission, meeting security compliance requirements by default. 3. Compatible with more KMIP 1.1 protocol key management products. Feature Expansion 1. JavaScript stored procedures support larger result sets; MLE components comply with ECMAScript 2025. 2. Added the mysqldm diagnostic tool, supporting export of diagnostic information in JSON format. 3. JSON Duality Views now prevents the deletion of nested child object singleton items; fixed an issue with subqueries creating views. 1. Enhance JavaScript business logic capabilities and ensure compatibility with the latest language specifications. 2. Simplify troubleshooting and facilitate the submission of diagnostic data to Oracle Support. 3. Improve the stability of JSON view functionality and prevent data manipulation anomalies. System variables and plug-ins 1. Removed two variables, group_replication_allow_local_lower_version_join and semisync_master. 2. Changed the default value of explain_format from TRADITIONAL to TREE. 3. Changed the default value of innodb_change_buffering from DEFAULT to ALL. 1. Clean up outdated features to reduce version compatibility burden. 2. Optimize execution plan display for easier understanding of query logic. 3. Improve secondary index update efficiency. Compilation and Packaging 1. Solaris supports Clang/GCC compilation, and uses OpenSSL 3 by default. 2. Upgrade googletest to version 1.17 and libbacktrace to the April 2025 version. 3. CMake requires a minimum of version 3.17.5, and supports bundled/system libzip. 1. Adapted to the new Solaris platform compilation environment, improving security. 2. Fixed potential issues with legacy libraries, improving compilation stability. 3. Enhanced compilation flexibility, adapting to different system library environments. sys Schema 1. The `revoke_schema_privileges_from_all_accounts_except()` stored procedure is installed by default. 2. Fixed an error handling issue in the `sys.ps_trace_thread` stored procedure. 1. Batch revoke schema permissions (excluding specified accounts), simplifying permission management. 2. Improve stored procedure stability and reduce execution exceptions. Authentication and Key Management 1. SCRAM-SHA-1 authentication method is deprecated; authentication_ldap_sasl_auth_method_name defaults to SCRAM-SHA-256. 2. component_keyring_kmip supports the SECRET key type from Oracle Key Vault 21.10+. 1. Upgraded LDAP authentication security level to comply with modern encryption standards. 2. Expanded key type support to adapt to higher version key management systems.
More News
Want to see more quality content?
Browse all news