Example - Integration with MariaDB - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

MariaDB can be configured and built to use various compression methods supported by AOCL-Compression library. Steps to integrate AOCL-Compression with MariaDB (using lz4 compression) at compile time and launch it on Linux:

# Configure and build mariaDB
cd mariadb-10.11.3
cmake -B . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$PWD/maria_bin -DPLUGIN_MROONGA=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_PROVIDER_BZIP2=NO -DPLUGIN_PROVIDER_LZMA=NO -DPLUGIN_PROVIDER_SNAPPY=NO -DLZ4_LIBRARIES="path/to/aocl_compression.so" -DLZ4_INCLUDE_DIRS="include/directory/path/of/AOCL-Compression"
cmake --build . -j;cmake --install .
# Edit config file /etc/mysql/my.cnf and set compression method to lz4
# Launch mariaDB server
./scripts/mariadb-install-db --srcdir="path/to/mariaDB/src/folder" --plugin-dir="path/to/mariaDB/plugin/folder" --user=mysql
./support-files/mysql.server start