cmd下执行如下命令(已配置Mysq环境变量):
mysql -u root -pXXX
use mysql
update user set host = '%' where user = 'root'
flush privileges
cmd下执行如下命令(已配置Mysq环境变量):
mysql -u root -pXXX
use mysql
update user set host = '%' where user = 'root'
flush privileges