Instalar
apt-get install mariadb-server mariadb-client
Cambiar en el fichero de configuración /etc/mysql/mariadb.conf.d/50-server.cnf
bind-address 127.0.0.0 to bind-address 0.0.0.0
Ejecutar
mysql -u root
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.%' IDENTIFIED BY 'root' WITH GRANT OPTION;