use mysql;
update user set host = '%' where user = 'root';
Grant all on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
use mysql;
update user set host = '%' where user = 'root';
Grant all on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
发表评论