首先登录ROOT账号
flush privileges;
mysql -u root -p
输入密码
mysql>use mysql;grant all privileges on *.* to root@"%" identified by 'abc' with grant option;
flush privileges;
就可以了。最后可能要在防火墙开一下端口。