mysql权限配置-实用配置

版权声明: https://blog.csdn.net/qq_28710983/article/details/81712646


创建用户

#CREATE USER 'blog2'@'%' IDENTIFIED BY '123!@#456$%^';    

设定权限

#grant select,insert,update on test.* to 'blog2'@'%'; 

存储过程权限

#grant create routine,alter routine,execute on test.* to 'blog2'@'%'; 


外键权限,索引,视图

#grant references,index,create view,show view on test.* to 'blog2'@'%'; 


 

猜你喜欢

转载自blog.csdn.net/qq_28710983/article/details/81712646