授权格式:
grant 权限 on 数据库对象 to 用户
Mysql授予用户操作存储过程、函数的权限。
grant create routine on testdb.* to 'devuse'@'192.168.1.%'; grant alter routine on testdb.* to 'devuse'@'192.168.1.%'; grant execute on testdb.* to 'devuse'@'192.168.1.%';
注意,授完权后要刷新Mysql的权限表一下。
Mysql如何授予用户操作存储过程、函数的权限
授权格式:
grant 权限 on 数据库对象 to 用户
Mysql授予用户操作存储过程、函数的权限。
grant create routine on testdb.* to 'devuse'@'192.168.1.%'; grant alter routine on testdb.* to 'devuse'@'192.168.1.%'; grant execute on testdb.* to 'devuse'@'192.168.1.%';
注意,授完权后要刷新Mysql的权限表一下。
©2013-2015 第二代Mysql、PHP、SQLite技术网