码迷,mamicode.com
首页 > 数据库 > 详细

mysql修改definer方法

时间:2015-08-19 13:01:23      阅读:2630      评论:0      收藏:0      [点我收藏+]

标签:

 -- 函数、存储过程

select definer from mysql.proc;
update mysql.proc set definer=‘billing@%‘;
 
-- 定时事件
select DEFINER from mysql.EVENTS;
update mysql.EVENTS set definer=‘billing@%‘;
 
--视图
select DEFINER from information_schema.VIEWS;   
select concat("alter DEFINER=`root`@`%` SQL SECURITY DEFINER VIEW ",TABLE_SCHEMA,".",TABLE_NAME," as ",VIEW_DEFINITION,";") from information_schema.VIEWS where DEFINER<>‘billing@%‘; 
 
--触发器
select DEFINER from information_schema.TRIGGERS;

mysql修改definer方法

标签:

原文地址:http://www.cnblogs.com/zejin2008/p/4741747.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!