Skip to content

MariaDB as Alternative Database Option

Dustin Born edited this page Sep 21, 2026 · 1 revision

search_vulns can be configured to use MariaDB as an alternative to the preconfigured SQLite mechanism. A sample configuration file for MariaDB is provided in src/search_vulns/config_mariadb.json.

Make sure that you adjust the values for MariaDB in the configuration file to your MariaDB deployment (user, password, host and port).

To use MariaDB instead of SQLite for the webserver, simply change the CONFIG_FILE variable in web_server.py to your config file (e.g. src/search_vulns/config_mariadb.json).

To improve the performance of search_vulns with MariaDB, it is recommend to add the following settings to your MariaDB configuration file (e.g. /etc/mysql/my.cnf):

[mariadb]
query_cache_type = 1
query_cache_size = 192M
innodb_buffer_pool_size = 2560M
innodb_buffer_pool_size_auto_min = 1GB
thread_handling = pool-of-threads

innodb_buffer_pool_size can be set to approximately 80% of available memory on a pure database server (see MariaDB's official documentation).

Clone this wiki locally