LINUX mariadb服务器

MariaDB [mysql]> grant all privileges on *.* to root @"192.168.1.2" identified by "123456";

MariaDB [mysql]> flush privileges;

192.168.1.2 为windows 主机IP

关闭防火墙