-- 函数、存储过程

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;

相关文章:

  • 2021-12-11
  • 2022-12-23
  • 2021-11-28
  • 2021-12-21
  • 2021-12-06
  • 2021-09-03
  • 2022-01-30
  • 2022-02-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-06-07
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案