①show grants for root@localhost;
如grant all privileges on *.* to 'root’@’localhost’无WITH GRANT OPTION权限,则②
②查看root@localhost权限
grant_priv为N则修改grant_priv为Y
③重启mysql服务
service mysql restart
④root登录到localhost
①show grants for root@localhost;
如grant all privileges on *.* to 'root’@’localhost’无WITH GRANT OPTION权限,则②
②查看root@localhost权限
grant_priv为N则修改grant_priv为Y
③重启mysql服务
service mysql restart
④root登录到localhost