The solution from my case that I had before was to rebuild mariadb from custombuild. I remember that, everytime I have finished install directadmin from scratch, I need to rebuild whether mariadb or mysql at least one time to fix some errors in sql. The initial installation seems does not work well.