> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/release-notes/community-server/old-releases/10.5/10.5.2.md).

# MariaDB 10.5.2 Release Notes

MariaDB 10.5.2 is a Beta release of MariaDB Community Server 10.5, released on 2020-03-26

{% hint style="info" %}

<p align="center">The most recent release of MariaDB 10.5 is:</p>

<h4 align="center"><a href="/docs/release-notes/community-server/old-releases/10.5/10.5.29.md"><strong>MariaDB 10.5.29</strong></a> Stable (GA) <a href="https://mariadb.com/downloads/" class="button primary">Download Now</a></h4>

<p align="center"><a href="https://downloads.mariadb.org/mariadb/10.5.29/"><sub><em>Alternate download from mariadb.org</em></sub></a></p>
{% endhint %}

<a href="https://downloads.mariadb.org/mariadb/10.5.2/" class="button primary">Download</a> <a href="/docs/release-notes/community-server/old-releases/10.5/10.5.2.md" class="button secondary">Release Notes</a> <a href="/docs/release-notes/community-server/changelogs/changelogs-mariadb-105-series/mariadb-1052-changelog.md" class="button secondary">Changelog</a> <a href="/docs/release-notes/community-server/old-releases/10.5/what-is-mariadb-105.md" class="button secondary">Overview of 10.5</a>

**Release date:** 26 Mar 2020

[MariaDB 10.5](/docs/release-notes/community-server/old-releases/10.5/what-is-mariadb-105.md) is the current *development* series of MariaDB. It is an evolution of [MariaDB 10.4](/docs/release-notes/community-server/old-releases/10.4/what-is-mariadb-104.md) with several entirely new features not found anywhere else and with backported and reimplemented features from MySQL.

[MariaDB 10.5.2](/docs/release-notes/community-server/old-releases/10.5/10.5.2.md) is a [***Beta***](/docs/release-notes/community-server/about/release-criteria.md) release.

{% hint style="danger" %} <mark style="color:red;">**Do not use non-stable (non-GA) releases in production!**</mark>
{% endhint %}

Thanks, and enjoy MariaDB!

## Notable Changes

This is the second beta release in the [MariaDB 10.5](/docs/release-notes/community-server/old-releases/10.5/what-is-mariadb-105.md) series.

Notable changes of this release include:

### Syntax

* [RELEASE\_ALL\_LOCKS](/docs/server/reference/sql-functions/secondary-functions/miscellaneous-functions/release_all_locks.md) ([MDEV-10569](https://jira.mariadb.org/browse/MDEV-10569))
* [ALTER TABLE ... RENAME INDEX / KEY](/docs/server/reference/sql-statements/data-definition/alter/alter-table.md#rename-index-key) ([MDEV-7318](https://jira.mariadb.org/browse/MDEV-7318))
* [ALTER TABLE ... RENAME COLUMN](/docs/server/reference/sql-statements/data-definition/alter/alter-table.md#rename-column) ([MDEV-16290](https://jira.mariadb.org/browse/MDEV-16290))
* Recursive [CTE](/docs/server/reference/sql-statements/data-manipulation/selecting-data/common-table-expressions.md) cycle detection using CYCLE clause ([MDEV-20632](https://jira.mariadb.org/browse/MDEV-20632))
* [ALTER TABLE](/docs/server/reference/sql-statements/data-definition/alter/alter-table.md) and [RENAME TABLE](/docs/server/reference/sql-statements/data-definition/rename-table.md) now support `IF EXISTS`.

### Privileges

* Split SUPER [privilege](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md) to smaller privileges ([MDEV-21743](https://jira.mariadb.org/browse/MDEV-21743)). New privileges were added so that more fine grained tuning of what each user can do can be applied:
  * [BINLOG ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#binlog-admin)
  * [BINLOG REPLAY](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#binlog-replay)
  * [CONNECTION ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#connection-admin)
  * [FEDERATED ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#federated-admin)
  * [READ\_ONLY ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#read_only-admin)
  * [REPLICATION MASTER ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-master-admin)
  * [REPLICATION SLAVE ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-slave-admin)
  * [SET USER](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#set-user)
* The [REPLICATION CLIENT](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-client) privilege was renamed to [BINLOG MONITOR](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#binlog-monitor). The old syntax is understood for compatibility ([MDEV-21743](https://jira.mariadb.org/browse/MDEV-21743)).
* The [SHOW MASTER STATUS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-binlog-status.md) statement was renamed to [SHOW BINLOG STATUS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-binlog-status.md) ([MDEV-21743](https://jira.mariadb.org/browse/MDEV-21743)). The old syntax is understood for compatibility.
* A number of statements changed the privileges that they require. The old privileges were historically inappropriately chosen in the upstream. 10.5.2 fixes this problem. Note, these changes are incompatible to previous versions. A number of GRANT commands might be needed after upgrade.
  * [SHOW BINLOG EVENTS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-binlog-events.md) now requires the [BINLOG MONITOR](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#binlog-monitor) privilege (required [REPLICATION SLAVE](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-slave) prior to 10.5.2).
  * [SHOW SLAVE HOSTS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-replica-hosts.md) now requires the [REPLICATION MASTER ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-master-admin) privilege (required [REPLICATION SLAVE](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-slave) prior to 10.5.2).
  * [SHOW SLAVE STATUS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-replica-status.md) now requires the [REPLICATION SLAVE ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-slave-admin) or the [SUPER](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#super) privilege (required [REPLICATION CLIENT](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-client) or [SUPER](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#super) prior to 10.5.2).
  * [SHOW RELAYLOG EVENTS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-relaylog-events.md) now requires the [REPLICATION SLAVE ADMIN](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-slave-admin) privilege (required [REPLICATION SLAVE](/docs/server/reference/sql-statements/account-management-sql-statements/grant.md#replication-slave) prior to 10.5.2).
* In order to help the server understand which version a privilege record was written by, the [mysql.global\_priv.priv](/docs/server/reference/system-tables/the-mysql-database-tables/mysql-global_priv-table.md) field contains a new JSON field, `version_id` ([MDEV-21704](https://jira.mariadb.org/browse/MDEV-21704))
* [SHOW PRIVILEGES](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-privileges.md) now correctly lists the `Delete history` privilege, rather than displaying it as `Delete versioning rows`. ([MDEV-20382](https://jira.mariadb.org/browse/MDEV-20382))

### InnoDB

* An upgrade will only be possible after a clean shutdown. mariadb-backup --prepare will not work with backups taken before version 10.5.2.
* Efficient InnoDB redo log record format ([MDEV-12353](https://jira.mariadb.org/browse/MDEV-12353))
* Deprecate and ignore innodb\_scrub\_log and innodb\_scrub\_log\_speed ([MDEV-21870](https://jira.mariadb.org/browse/MDEV-21870))
* Remove INFORMATION\_SCHEMA.INNODB\_TABLESPACES\_SCRUBBING table and deprecate and ignore innodb-background-scrub-data-uncompressed, innodb-background-scrub-data-compressed, innodb-background-scrub-data-interval and innodb-background-scrub-data-check-interval ([MDEV-15528](https://jira.mariadb.org/browse/MDEV-15528))
* Deprecate and ignore innodb\_log\_files\_in\_group ([MDEV-14425](https://jira.mariadb.org/browse/MDEV-14425))
* Do not acquire InnoDB record locks when covering table locks exist ([MDEV-14479](https://jira.mariadb.org/browse/MDEV-14479))
* Issue a message on changing deprecated innodb\_log\_files\_in\_group ([MDEV-21990](https://jira.mariadb.org/browse/MDEV-21990))
* Optimize append only files for NVDIMM ([MDEV-17084](https://jira.mariadb.org/browse/MDEV-17084))
* Improve innodb redo log group commit performance ([MDEV-21534](https://jira.mariadb.org/browse/MDEV-21534))
* Punch holes when pages are freed ([MDEV-15528](https://jira.mariadb.org/browse/MDEV-15528))

### Optimizer

* Allow packed sort keys in sort buffer ([MDEV-21580](https://jira.mariadb.org/browse/MDEV-21580))

### Performance Schema

* Merge 5.7 P\_S transaction instrumentation and tables ([MDEV-16435](https://jira.mariadb.org/browse/MDEV-16435))
* Merge 5.7 P\_S memory instrumentation and tables ([MDEV-16431](https://jira.mariadb.org/browse/MDEV-16431))
* Merge 5.7 P\_S mdl instrumentation and tables ([MDEV-16432](https://jira.mariadb.org/browse/MDEV-16432))
* Merge 5.7 P\_S sxlocks instrumentation and tables ([MDEV-16436](https://jira.mariadb.org/browse/MDEV-16436))
* Merge 5.7 P\_S user variables instrumentation and tables ([MDEV-16439](https://jira.mariadb.org/browse/MDEV-16439))
* Merge 5.7 P\_S \[show] status instrumentation and tables ([MDEV-16438](https://jira.mariadb.org/browse/MDEV-16438))
* Merge 5.7 P\_S ps instrumentation and tables ([MDEV-16433](https://jira.mariadb.org/browse/MDEV-16433))
* Merge 5.7 P\_S sp instrumentation and tables ([MDEV-16434](https://jira.mariadb.org/browse/MDEV-16434))

### Replication

* `ENFORCE` option for [slave\_run\_triggers\_for\_rbr](/docs/server/ha-and-performance/standard-replication/replication-and-binary-log-system-variables.md#slave_run_triggers_for_rbr) ([MDEV-21833](https://jira.mariadb.org/browse/MDEV-21833))

### ANALYZE FORMAT=JSON

* Add information about packed addon fields in [ANALYZE FORMAT=JSON](/docs/server/reference/sql-statements/administrative-sql-statements/analyze-and-explain-statements/analyze-format-json.md) ([MDEV-21838](https://jira.mariadb.org/browse/MDEV-21838))

### Binaries

* All binaries previously beginning with `mysql` now begin with `mariadb`, with symlinks for the corresponding `mysql` command. ([MDEV-21303](https://jira.mariadb.org/browse/MDEV-21303))

### Galera

* [Galera wsrep library](/docs/galera-cluster/readme/mariadb-galera-cluster-guide.md) updated to 26.4.4
* Galera Cluster Node During IST gets stuck going from "Synced" to "Joining:..." ([MDEV-21002](https://jira.mariadb.org/browse/MDEV-21002))

### Other

* [HeidiSQL](/docs/server/clients-and-utilities/graphical-and-enhanced-clients/heidisql.md) updated to 11.0 ([MDEV-22032](https://jira.mariadb.org/browse/MDEV-22032))
* [require\_secure\_transport](/docs/server/server-management/variables-and-modes/server-system-variables.md#require_secure_transport) system variable, for rejecting connections attempted using insecure transport ([MDEV-13362](https://jira.mariadb.org/browse/MDEV-13362))
* [sql\_if\_exists](/docs/server/server-management/variables-and-modes/server-system-variables.md#sql_if_exists) session system variable, which adds an implicit IF EXISTS to ALTER, RENAME and DROP of TABLES, VIEWS, FUNCTIONS and PACKAGES. ([MDEV-19964](https://jira.mariadb.org/browse/MDEV-19964))
* [XA PREPARE](/docs/server/reference/sql-statements/transactions/xa-transactions.md#syntax) transactions must survive client disconnection ([MDEV-742](https://jira.mariadb.org/browse/MDEV-742))
* Binary tarball size has been reduced ([MDEV-21943](https://jira.mariadb.org/browse/MDEV-21943))

## Changelog

For a complete list of changes made in [MariaDB 10.5.2](/docs/release-notes/community-server/old-releases/10.5/10.5.2.md), with links to detailed information on each push, see the [changelog](/docs/release-notes/community-server/changelogs/changelogs-mariadb-105-series/mariadb-1052-changelog.md).

## Contributors

For a full list of contributors to [MariaDB 10.5.2](/docs/release-notes/community-server/old-releases/10.5/10.5.2.md), see the [MariaDB Foundation release announcement](https://mariadb.org/mariadb-10-5-2-now-available/).

**Do not use&#x20;*****beta*****&#x20;releases in production!**

{% hint style="info" %}
Be notified of new MariaDB Server releases automatically by [subscribing](https://lists.mariadb.org/postorius/lists/announce.lists.mariadb.org/) to the MariaDB Foundation community announce 'at' lists.mariadb.org announcement list (this is a low traffic, announce-only list). MariaDB plc customers will be notified for all new releases, security issues and critical bug fixes for all MariaDB plc products thanks to the Notification Services.

MariaDB may already be included in your favorite OS distribution. More information can be found on the [Distributions which Include MariaDB](/docs/general-resources/distributions-including-mariadb.md) page.
{% endhint %}

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formid="4316" formId="4316" %}
