Enabling TokuDB in Docker with custom config

I’m using docker-compose to build my stack.

Mysql will throw an error if you have references to tokudb_ in the config before TokuDB is enabled, so how do I enable TokuDB and then use my own config?

1 Like

You may prefix TokuDB options with --loose such as --loose-tokudb-cache-size=1M

You should be aware that TokuDB is being deprecated and should not be used for any new deployments. It will remain in the 5.7 series until 5.7 goes EOL next year and will be completely removed from the 8.0 series in the upcoming 8.0.28 release. See Heads-Up: TokuDB Support Changes and Future Removal from Percona Server for MySQL 8.0 - Percona Database Performance Blog

I suggest that you look at MyRocks for similar needs.

George O. Lorch III
Director of Server Engineering, Percona Server for MySQL, Percona XtraDB Cluster, and Percona XtraBackup

1 Like

Thanks, looks like that works perfectly. I’ll be migrating a large production database soon.

1 Like