https://jfrog.com/help/r/jfrog-installation-setup-documentation/create-the-artifactory-mariadb-database
Artifactory provides a script that will execute the SQL commands you need to create your MariaDB database. You can find the script in $JFROG_HOME/artifactory/app/misc/db/createdb/createdb_mariadb.sql