3. Database (MariaDB)
Set MariaDB repository and then execute following commands to install.
apt update
apt install mariadb-server -y
After installation, secure your database installation, which will ask to configure root user password & several other questions.
mysql_secure_installation