产生用户不能授权的原因是mysql 数据库中user 表中的特定用户(root) 的host 的属性值为localhost.
use mysql;
update user set host=’%’ where user=‘root’;
grant all on . to ‘root’@’%’;
产生用户不能授权的原因是mysql 数据库中user 表中的特定用户(root) 的host 的属性值为localhost.
use mysql;
update user set host=’%’ where user=‘root’;
grant all on . to ‘root’@’%’;