Solo para ello se tiene que hacer lo siguiente:
Ingresar por una terminal
mysql -u root -p
y dentro de mariadb solo debemos ejecutar los siguientes comandos sql;
CREATE USER 'usuario'@'%' IDENTIFIED BY 'tu_password';
GRANT ALL PRIVILEGES ON *.* TO 'usuario'@'%' IDENTIFIED BY 'tu_password';
GRANT USAGE on *.* TO 'usuario'@'%' IDENTIFIED BY 'tu_password';
FLUSH PRIVILEGES;
Ahora habilitamos como ROOT
GRANT ALL PRIVILEGES ON *.* TO 'usuario'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
SHOW GRANTS FOR 'usuario'@'%';
Se tiene que habilitar el acceso con SELINUX
semanage port -a -t mysqld_port_t -p tcp 3306
Luego se tiene que habilitar lo accesos en el firewall, añadiendo segmento y puerto
firewall-cmd --permanent --add-source=192.168.0.0/24
firewall-cmd --permanent --add-port=3306/tcp
firewall-cmd --reload