盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

对于mysql create routine权限的代码案例详细说明

时间:2025/3/16作者:未知来源:盾怪网教程人气:

[摘要]function 的alter routine和execute 权限。3、例子:用户root用户创建一个spuser@localhost用户并对它赋予create procedure 权限grant...
function 的alter routine和execute 权限。

3、例子:

用户root用户创建一个spuser@'localhost'用户并对它赋予create procedure 权限

grant create routine on tempdb.* to spuser@'localhost' identified by '123456';

用spuser@'localhost'用户去创建一个routine

delimiter go
create procedure sp_hello_world()
begin
  select 'hello world';
end 
go

delimiter ;

再一次查看spuser@'localhost'的权限

mysql> show grants;
+---------------------------------------------------------------------------------------------------------------+

关键词:对于mysql create routine权限的代码案例详细说明




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版