修改MySql的儲存過程、函式、事件、觸發器、檢視的 DEFINER
or update mysql.proc set definer='[email protected]' where db='db_name';
select DEFINER from mysql.EVENTS; update mysql.EVENTS set definer='[email protected]'; select DEFINER from information_schema.VIEWS; select concat("alter DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW ",TABLE_SCHEMA,".",TABLE_NAME," as ",VIEW_DEFINITION,";") from information_schema.VIEWS where DEFINER='