This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-23. For the latest, interactive version please visit https://mariadb.com/kb/.

Using InnoDB Instead of XtraDB

By default MariaDB 10.1 and earlier releases come compiled with XtraDB as the default InnoDB replacement. From MariaDB 10.2, InnoDB is the default.

MariaDB starting with 5.5

Starting from MariaDB 5.5, all standard MariaDB distributions also includes InnoDB as a plugin.

To use the InnoDB plugin instead of XtraDB you can add to your my.cnf file:

[mysqld]
ignore_builtin_innodb
plugin_load=ha_innodb.so
# The following should not be needed if you are using a mariadb package:
plugin_dir=/usr/local/mysql/lib/mysql/plugin
MariaDB until 5.3

For MariaDB 5.3 and below, the name of the library is ha_innodb_plugin.so

The reasons you may want to use InnoDB instead of XtraDB are:

  • You want to benchmark the difference between InnoDB/XtraDB
  • You hit a bug in XtraDB
  • You got a table space crash in XtraDB and recovery doesn't work. In some cases InnoDB may do a better job to recover data.

See Also

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.