Saving data into a database is crucial in a lot of applications. MariaDB is an appropriate choice. Here you see how it is installed.
With the apt it is easily installed
sudo apt-get -y install mariadb-server mariadb-client
Your database should be protected from unwanted access. At least the root user should get a password. So start the command below and follow the instructions carefully.
sudo mysql_secure_installation
Almost done. To apply your changes you need to flush them. Enter the commad and follow the screenshot.
sudo mysql -u root
If you want to make the administration of your databases a bit more comfortable ist the installation of Apache and PHP MySQL recommended to have a graphical interface.