MariaDB is a popular open-source relational database management system that has seen significant growth and development over the years. With the release of MariaDB 10.11, there are numerous changes, improvements, and new features that users should be aware of. In this blog post, we will delve into the key aspects of upgrading to MariaDB 10.11 from MariaDB 10.6.
New Features & Improvements in MariaDB 10.11
- Authentication:
GRANT to PUBLIC
: This feature allows granting privileges to the public. MDEV-5215- Separate
SUPER
andREAD ONLY ADMIN
privileges. MDEV-29596
- Optimizer:
- The
ANALYZE FORMAT=JSON
now displays the time spent in the query optimizer. MDEV-28926
- The
- Information Schema:
- Addressed performance issues when reading the Information Schema Parameters table. MDEV-29104
- Resolved full table scan issues in the Information Schema Parameters and Information Schema Routines tables. MDEV-20609
- System Versioning:
- Introduced a system versioning setting,
system_versioning_insert_history
, to allow history modification. MDEV-16546 mariadb-dump
now supports dumping and restoring historical data. MDEV-16029
- Introduced a system versioning setting,
- InnoDB:
- The variables
innodb_write_io_threads
andinnodb_read_io_threads
are now dynamic, allowing their values to be changed without restarting the server. MDEV-11026
- The variables
- Windows:
- Implemented passwordless login for the MariaDB root user, specifically for OS admin users. MDEV-26715
- General:
- Renamed several slow query variables:
log_slow_min_examined_row_limit
tomin_examined_row_limit
log_slow_query
toslow_query_log
log_slow_query_file
toslow_query_log_file
(Note: This was namedlog_slow_query_file_name
in the MariaDB 10.11.0 preview release.)log_slow_query_time
tolong_query_time
- The
replicate_rewrite_db
is now a system variable and not just an option. MDEV-15530
- Renamed several slow query variables:
- Variables:
- For a comprehensive list of all new variables, refer to the official documentation on System Variables Added in MariaDB 10.11 and Status Variables Added in MariaDB 10.11.
Deprecated Options:
The following options have been deprecated in MariaDB 10.11. They haven’t been removed yet but will be in future versions:
keep_files_on_create
: MariaDB now deletes orphan files, making this setting unnecessary.
Options That Have Been Removed or Renamed:
innodb_log_write_ahead_size
: On Linux and Windows, the physical block size of the underlying storage is detected and used, making this option redundant.innodb_version
: This option has been deemed redundant.wsrep_replicate_myisam
andwsrep_strict_ddl
: Users should usewsrep_mode
instead.
Potential Pitfalls:
- Compression Issues: If you’ve used a non-zlib compreSSIon algorithm in InnoDB or Mroonga in MariaDB 10.6, you’ll need to install the appropriate compreSSIon library to read those tables in 10.11.
- Configuration Changes: If you’ve customized your MariaDB configuration, you’ll need to review and potentially adjust it to account for the changed, removed, or renamed options.
Benefits of Upgrading to MariaDB 10.11
- Enhanced Security: With the introduction of new authentication features, MariaDB 10.11 offers improved security mechanisms, ensuring that your data remains protected.
- Optimized Performance: The new optimizer features and improvements in the Information Schema ensure that queries run faster and more efficiently.
- Advanced Versioning: The system versioning enhancements provide better control over historical data, making data management more flexible.
- Dynamic Configuration: With dynamic InnoDB variables, administrators can now tweak performance settings without the need to restart the server, leading to minimal downtime.
- Improved Windows Support: The passwordless login feature for the MariaDB root user on Windows platforms simplifies the authentication process for OS admin users.
- Better Query Management: The renaming of slow query variables provides clarity and consistency in query management and monitoring.
In conclusion, upgrading to MariaDB 10.11 from MariaDB 10.6 brings a plethora of new features, improvements, and optimizations. It’s essential to familiarize yourself with these changes to make the most of your MariaDB experience.
Note: For a more detailed understanding and for any specific deprecated options, options that have been removed or renamed, and incompatible changes between versions, it’s recommended to refer to the official MariaDB documentation and release notes.