I do not know much about MariaDB, but if it behaves like MySQL, maybe this is the problem (and the solution)?