输入:grant all on *.* to root@'%';
提示:You are not allowed to create a user with GRANT
输入命令:update user set host='%' where user='root';
刷新授权:flush privileges;
再次授权: grant all privileges on *.* to 'root'@'%' with grant option;
成功
输入:grant all on *.* to root@'%';
提示:You are not allowed to create a user with GRANT
输入命令:update user set host='%' where user='root';
刷新授权:flush privileges;
再次授权: grant all privileges on *.* to 'root'@'%' with grant option;
成功