02-修改用户权限

1.将mysql数据库中的mysql数据库的user表中的host改为%就可以统配所有的ip地址
grant all privileges on *.* to root@"%" identified by "123456";
2.修改用户root 用户的权限  
update user set Grant_priv="Y" where host="%";  创建的用户 没有给别的用户赋权限的权限   所以要改成Y 
3.给新用户赋权限
grant select on mysql.user to bw;

 

原文地址:https://www.cnblogs.com/JBLi/p/10823963.html