If you want to use the latest MariaDB release on a fresh server, you need at first to add the MariaDB 10.2 repository :
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.2 --skip-maxscale
Then you can install mariadb-server :
apt update apt install mariadb-server
It’s not needed to set a root password during the installation, but use the commmand
mysql_secure_installation to set the root password and to remove anonymous users and useless tables.
Then create a file /etc/mysql/conf.d/my.cnf to provide root credentials to EasyEngine with the following content :
[client] user = root password = new-password