Configure MariaDB
By default, MariaDB allows connection only from localhost,
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
Change the value of the bind-address from 127.0.0.1 to 0.0.0.0 so that MariaDB server accepts connections on all host IPv4 interfaces.
sudo systemctl restart mariadb