Maybe try logging into MariaDB and choosing a database and try to create a table manually.
mysql -u root -p use moodle; #DB name # Create Table:
CREATE TABLE mdl_config (
id BIGINT(10) NOT NULL auto_increment,
name VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
value LONGTEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
CONSTRAINT PRIMARY KEY (id)
)
Furthermore check out this link, they seam to have the same error message: https://moodle.org/mod/forum/discuss.php?d=214752