检查 user 表中'root'@'%' 的grant的权限 select HOST,USER,Grant_priv,Super_priv from mysql.`user`; 可以看到现在这两个权限都是N 然后我们更新它们为Y,然后重启mysql update mysql.user set Grant_priv='Y',Super_priv='Y' where user = 'root' and host = '%'; flush privileges; 重启mysql /etc/init.d…