mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "root";
#最后一个by "root" ,那个“root” 就是你设置局域网登录的密码
mysql> flush privileges;
mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "root";
#最后一个by "root" ,那个“root” 就是你设置局域网登录的密码
mysql> flush privileges;