How to enable TokuDB in MariaDB
Starting from MariaDB 5.5.33 and MariaDB 10.0.5 TokuDB is included on those platforms that TokuDB supports.
Note that the TokuDB version that comes from MariaDB.org differs slightly from the TokuDB version from the version at www.tokutek.com. Please read this article before using TokuDB!
TokuDB is not enabled by default. To enable it, you can use any of the following methods:
Enabling TokuDB from the my.cnf file
New default my.cnf
files comes with a section for TokuDB. To enable TokuDB just remove the '#' comment markers from options in the TokuDB section.
A typical TokuDB section looks like
# To enable TokuDB, remove the comment markers from the following line: #plugin-load=innodb=ha_tokudb.so
Installing TokuDB from the command line
Execute once, as super user, the following command:
install soname 'ha_tokudb';
TokuDB will be installed until someone executes uninstall soname.
Starting mysqld with TokuDB installed
If you just want to test TokuDB, you can start the mysqld server with TokuDB with the following command:
mysqld --plugin-load=innodb=ha_tokudb.so --plugin_dir=/usr/local/mysql/lib/mysql/plugin
See also
- Differences between TokuDB from www.tokudb.com and the TokuDB version in default MariaDB from mariadb.org.