首先,登录mysql,输入命令:
use mysql
grant all privileges on *.* to root@"%" identified by "密码";
flush privileges;
root是账户名称