-- 函數、存儲過程
          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; 
        
 
         
         
       